Jump to content
Sign in to follow this  
VipHeart

Modify the action menu in the config.cpp?

Recommended Posts

While working on an new GUI for a project i started to change lots of thing in the ingame GUI. wink_o.gif

Yet there's one small menu which is resisting me: the action menu..

Anyone any idea where to find the values to change let's say color, fonts and size of it in the main config.cpp or resource.cpp??

Or is it ( my worst nightmare..) hardcoded into OFP?? That would be pretty strange, if not to say somehow untypical, 'cause the rest of the GUI elements can be accessed and alterd in the config.cpp's CfgInGameUI section or in the Resource.cpp..

Please folks, help me sad_o.gif

Thanx in advance..

Share this post


Link to post
Share on other sites

I remember having seen a modified action menu in the "this thread,

It was there exactly, as you see it seems he was able to add new entries/function to the menu , so he found where it was defined, and certainly the colors and fonts were there too.

So unless it was a fake, it means there should be way to achieve what you want to do.

But the author left the community after telling he lost his work, and left no informations about his scripts/ressource modifications , so it might be difficult to contact him to get the needed informations.

Share this post


Link to post
Share on other sites

Hey Sanctuary, thanx mate biggrin_o.gif this is very cool - yet not exactly what i was seraching for biggrin_o.gif

I mean the action menu on the right bottom side of the screen were you choose things like reloading, weapon on back and so on.

In the CfgInGameUI in the main config.cpp there are entries where you can alter the radio menu's settings like color etc or for example the radar or group menu.

HOWEVER, the action menu seems not to be listed there!!

Anyone any idea?? Maybe BIS?? thanx in advance wink_o.gif

Share this post


Link to post
Share on other sites

No answer to your question but another question concerning the inGameUI. Sorry if it's the wrong place to ask but i didn't want to open up a new thread for a very short and simple question:

For changing the players display of weapon and magazines in the top left corner: what ressources are involved and where are they defined? A quick look in the cfgInGameUI did not tell  me.

Any help is appreciated. smile_o.gif

Share this post


Link to post
Share on other sites

Doesn't the FDF mod change this? I have no idea how to mess around with the resources stuff, so I couldn't help you, but you might wanna look inside their config.

Share this post


Link to post
Share on other sites

Hi,

Quote[/b] ]Anyone any idea where to find the values to change let's say color, fonts and size of it in the main config.cpp or resource.cpp??

<span style='color:red'>Fonts:</span>

OFP allows the possibility of using a couple of fonts in several sizes.

e.g

font bold or italic size

Tahoma B 24

Here's the list of available fonts in OFP, you could include more if you wish, though. (Airwolf Mod has already proceeded to that by adding 'impact' font to the following list)

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

TahomaB24

TahomaB36

TahomaB48

CourierNewB64

Garamond64

SteelfishB64

SteelfishB128

AudreysHandB48

AudreysHandI48

fonts2sy.jpg

<span style='color:red'>Sizes:</span>

The texts sizes are mainly defined in the resouce.cpp, you can define'em by editing this line's value.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> sizeEx=

e.g

Size of the text x or y x or y

sizeEx= "1.0714 * 0.03";

<span style='color:red'>Colors</span>

OFP texts colors are defined by following the rule of R G B (red/green/blue) colors, and the texts color's value is defined in the resource cpp as

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> colorText[]=

e.g

Color Text Red Green Blue Transparence (alpha)

colorText[]={0.080000,0.080000,0.120000, 1};

And to know the color corresponding to the number, you've to use a RGB color's palett (Photoshop or PSP) but you've to multiply the color's number you'd be defining by 255.

e.g

<span style='color:Green'>Green Color</span>= (In OFP = 0, 1, 0) = (In Photoshop = 0/255, 1/255, 0/255)

After several hours of playing with color settings, fonts, selection titles positions, 'finally got the new FFUR 2006 GUI.

ffurgui9az.jpg

btw,

Quote[/b] ]Yet there's one small menu which is resisting me: the action menu..

->

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

//////////////////////////////////////////////////////////////// ////////////////////////

class RscMainMenu

{

access=3;

title="$STR_COMMAND";

atomic=0;

items[]={"Move","Target","Engage","GetIn","Status","Action","CombatMode","Formations","Team","Reply","HideMenu"};

class Move

{

title="$STR_MOVE";

key=2;

character=1;

command=-2;

menu="RscMoveHigh";

};

class Target

{

title="$STR_WATCH_TARGET";

key=3;

character=2;

command=cmd_watch;

};

class Engage

{

title="$STR_WATCH";

key=4;

character=3;

command=-2;

menu="RscWatchDir";

};

class GetIn

{

title="$STR_GETIN";

key=5;

character=4;

command=cmd_getin;

};

class Status

{

title="$STR_STATUS";

key=6;

character=5;

menu="RscStatus";

Command=-2;

};

class Action

{

title="$STR_ACTION";

key=7;

character=6;

command=cmd_action;

};

class CombatMode

{

title="$STR_COMBAT_MODE";

key=8;

character=7;

command=-2;

menu="RscCombatMode";

};

class Formations

{

title="$STR_FORMATION";

key=9;

character=8;

command=-2;

menu="RscFormations";

};

class Team

{

title="$STR_TEAM";

key=10;

character=9;

command=-2;

menu="RscTeam";

};

class Reply

{

title="$STR_REPLY";

key=11;

character=0;

command=-2;

menu="RscReply";

};

class HideMenu

{

title="";

key=14;

character="Backspace";

command=-3;

};

};

//////////////////////////////////////////////////////////////// ////////////////////////

class RscSubmenu

{

access=3;

atomic=0;

class Back

{

title="";

key=14;

character="Backspace";

command=-4;

};

class Separator

{

title="";

key=0;

character=0;

command=-1;

};

};

//////////////////////////////////////////////////////////////// ////////////////////////

class RscMoveHigh : RscSubmenu

{

title="$STR_MOVE_DIR";

items[]={"Join","Advance","StayBack","FlankLeft","FlankRight","Separator","Stop","Expect","Hide","Separator","NextWP","Separator","Other","Back"};

class Join

{

title="$STR_FOLLOW_ME";

key=2;

character=1;

command=cmd_join;

};

class Advance

{

title="$STR_ADVANCE";

key=3;

character=2;

command=cmd_advance;

};

class StayBack

{

title="$STR_STAY_BACK";

key=4;

character=3;

command=cmd_stay_back;

};

class FlankLeft

{

title="$STR_FLANK_LEFT";

key=5;

character=4;

command=cmd_flank_left;

};

class FlankRight

{

title="$STR_FLANK_RIGHT";

key=6;

character=5;

command=cmd_flank_right;

};

class Stop

{

title="$STR_STOP";

key=7;

character=6;

command=cmd_stop;

};

class Expect

{

title="$STR_EXPECT";

key=8;

character=7;

command=cmd_expect;

};

class Hide

{

title="$STR_HIDE";

key=9;

character=8;

command=cmd_hide;

};

class NextWP

{

title="$STR_NEXT_WAYPOINT";

key=10;

character=9;

command=cmd_next_waypoint;

};

class Other

{

title="$STR_MOVE_OTHER";

key=11;

character=0;

command=cmd_move_submenu;

menu="RscMoveDir";

};

};

//////////////////////////////////////////////////////////////// ////////////////////////

class RscMoveDir : RscSubmenu

{

atomic=1;

title="$STR_MOVE_DIR";

items[]={"N","NE","E","SE","S","SW","W","NW","Back"};

class N

{

title="$STR_MOVE_N";

key=2;

character=1;

command=-2;

menu="RscMoveDist";

};

class NE

{

title="$STR_MOVE_NE";

key=3;

character=2;

command=-2;

menu="RscMoveDist";

};

class E

{

title="$STR_MOVE_E";

key=4;

character=3;

command=-2;

menu="RscMoveDist";

};

class SE

{

title="$STR_MOVE_SE";

key=5;

character=4;

command=-2;

menu="RscMoveDist";

};

class S

{

title="$STR_MOVE_S";

key=6;

character=5;

command=-2;

menu="RscMoveDist";

};

class SW

{

title="$STR_MOVE_SW";

key=7;

character=6;

command=-2;

menu="RscMoveDist";

};

class W

{

title="$STR_MOVE_W";

key=8;

character=7;

command=-2;

menu="RscMoveDist";

};

class NW

{

title="$STR_MOVE_NW";

key=9;

character=8;

command=-2;

menu="RscMoveDist";

};

};

//////////////////////////////////////////////////////////////// ////////////////////////

class RscReply : RscSubmenu

{

title="$STR_REPLY_MENU";

items[]={"Done","Fail","FireReady","FireNotReady","Repeat","Copy","UserRadio","Radio","Back"};

class Done

{

title="$STR_REPLY_DONE";

key=2;

character=1;

command=cmd_reply_done;

};

class Fail

{

title="$STR_REPLY_FAIL";

key=3;

character=2;

command=cmd_reply_fail;

};

class FireReady

{

title="$STR_REPLY_FIREREADY";

key=4;

character=3;

command=cmd_reply_fireready;

};

class FireNotReady

{

title="$STR_REPLY_FIRENOTREADY";

key=5;

character=4;

command=cmd_reply_firenotready;

};

class Repeat

{

title="$STR_REPLY_REPEAT";

key=8;

character=7;

command=cmd_reply_repeat;

};

class Copy

{

title="$STR_REPLY_COPY";

key=9;

character=8;

command=cmd_reply_copy;

};

class UserRadio

{

title="$STR_RADIO_CUSTOM";

key=10;

character=9;

command=cmd_radio_custom;

menu="RscUserRadio";

};

class Radio

{

title="$STR_RADIO";

key=11;

character=0;

command=-2;

menu="RscRadio";

};

};

//////////////////////////////////////////////////////////////// ////////////////////////

class RscCallSupport : RscSubmenu

{

title="$STR_SUPPORT_MENU";

items[]={"Medic","Repair","Rearm","Refuel","Done","Back"};

class Medic

{

title="$STR_SUPPORT_MEDIC";

key=2;

character=1;

command=cmd_support_medic;

};

class Repair

{

title="$STR_SUPPORT_REPAIR";

key=3;

character=2;

command=cmd_support_repair;

};

class Rearm

{

title="$STR_SUPPORT_REARM";

key=4;

character=3;

command=cmd_support_rearm;

};

class Refuel

{

title="$STR_SUPPORT_REFUEL";

key=5;

character=4;

command=cmd_support_refuel;

};

class Done

{

title="$STR_SUPPORT_DONE";

key=6;

character=5;

command=cmd_support_done;

};

};

//////////////////////////////////////////////////////////////// ////////////////////////

class RscStatus : RscSubmenu

{

title="$STR_MENU_STATUS";

items[]={"Support","FuelLow","AmmoLow","Injured","WhereAreYou","Report","UnderFire","OneLess","IsDown","Back"};

class Support

{

title="$STR_CALL_SUPPORT";

key=2;

character=1;

command=-2;

menu="RscCallSupport";

};

class FuelLow

{

title="$STR_REPLY_FUEL_LOW";

key=3;

character=2;

command=cmd_reply_fuel_low;

};

class AmmoLow

{

title="$STR_REPLY_AMMO_LOW";

key=4;

character=3;

command=cmd_reply_ammo_low;

};

class Injured

{

title="$STR_REPLY_INJURED";

key=5;

character=4;

command=cmd_reply_injured;

};

class WhereAreYou

{

title="$STR_REPLY_WHERE_ARE_YOU";

key=6;

character=5;

command=cmd_reply_where_are_you;

};

class Report

{

title="$STR_REPORT";

key=6;

character=5;

command=cmd_report;

};

class UnderFire

{

title="$STR_REPLY_UNDER_FIRE";

key=7;

character=6;

command=cmd_reply_under_fire;

};

class OneLess

{

title="$STR_REPLY_ONE_LESS";

key=8;

character=7;

command=cmd_reply_one_less;

};

class IsDown

{

title="$STR_REPLY_KILLED";

key=9;

character=8;

command=cmd_reply_killed;

};

};

//////////////////////////////////////////////////////////////// ////////////////////////

class RscWatchDir : RscSubmenu

{

title="$STR_WATCH_DIR";

items[]={"OpenFire","HoldFire","Fire","Separator","Engage","EngageAtWill","Disengage","Separator","LookAround","WatchDir","Back"};

class OpenFire

{

title="$STR_OPEN_FIRE";

key=2;

character=1;

command=cmd_open_fire;

};

class HoldFire

{

title="$STR_HOLD_FIRE";

key=3;

character=2;

command=cmd_hold_fire;

};

class Fire

{

title="$STR_FIRE";

key=4;

character=3;

command=cmd_fire;

};

class Engage

{

title="$STR_ENGAGE_NOW";

key=5;

character=4;

command=cmd_engage;

};

class EngageAtWill

{

title="$STR_ENGAGE_AT_WILL";

key=6;

character=5;

command=cmd_loose_form;

};

class Disengage

{

title="$STR_DISENGAGE";

key=7;

character=6;

command=cmd_keep_form;

};

class LookAround

{

title="$STR_LOOK_AROUND";

key=8;

character=7;

command=cmd_watch_around;

};

class WatchDir

{

title="$STR_WATCH_DIR";

key=9;

character=8;

command=cmd_watch_submenu;

menu="RscWatchMoreDir";

};

};

//////////////////////////////////////////////////////////////// ////////////////////////

class RscWatchMoreDir : RscSubmenu

{

title="$STR_WATCH_DIR";

atomic=1;

items[]={"N","NE","E","SE","S","SW","W","NW","Back"};

class N

{

title="$STR_MOVE_N";

key=2;

character=1;

command=cmd_watch_n;

};

class NE

{

title="$STR_MOVE_NE";

key=3;

character=2;

command=cmd_watch_ne;

};

class E

{

title="$STR_MOVE_E";

key=4;

character=3;

command=cmd_watch_e;

};

class SE

{

title="$STR_MOVE_SE";

key=5;

character=4;

command=cmd_watch_se;

};

class S

{

title="$STR_MOVE_S";

key=6;

character=5;

command=cmd_watch_s;

};

class SW

{

title="$STR_MOVE_SW";

key=7;

character=6;

command=cmd_watch_sw;

};

class W

{

title="$STR_MOVE_W";

key=8;

character=7;

command=cmd_watch_w;

};

class NW

{

title="$STR_MOVE_NW";

key=9;

character=8;

command=cmd_watch_nw;

};

};

//////////////////////////////////////////////////////////////// ////////////////////////

class RscMoveDist : RscSubmenu

{

title="$STR_MOVE_DIST";

items[]={"D50","D100","D200","D500","D1000","D2000","Back"};

class D50

{

title="$STR_MOVE_50";

key=2;

character=1;

command=4096;

};

class D100

{

title="$STR_MOVE_100";

key=3;

character=2;

command=4096;

};

class D200

{

title="$STR_MOVE_200";

key=4;

character=3;

command=4096;

};

class D500

{

title="$STR_MOVE_500";

key=5;

character=4;

command=4096;

};

class D1000

{

title="$STR_MOVE_1000";

key=6;

character=5;

command=4096;

};

class D2000

{

title="$STR_MOVE_2000";

key=7;

character=6;

command=4096;

};

};

//////////////////////////////////////////////////////////////// ////////////////////////

class RscFormations : RscSubmenu

{

title="$STR_FORMATION";

items[]={"Column","Staggered","Wedge","EchL","EchR","Vee","Line","Back"};

class Column

{

title="$STR_COLUMN";

key=2;

character=1;

command=cmd_form_column;

};

class Staggered

{

title="$STR_STAGGERED";

key=3;

character=2;

command=cmd_form_stagcol;

};

class Wedge

{

title="$STR_WEDGE";

key=4;

character=3;

command=cmd_form_wedge;

};

class EchL

{

title="$STR_ECHL";

key=5;

character=4;

command=cmd_form_echleft;

};

class EchR

{

title="$STR_ECHR";

key=6;

character=5;

command=cmd_form_echright;

};

class Vee

{

title="$STR_VEE";

key=7;

character=6;

command=cmd_form_vee;

};

class Line

{

title="$STR_LINE";

key=8;

character=7;

command=cmd_form_line;

};

};

//////////////////////////////////////////////////////////////// ////////////////////////

class RscCombatMode : RscSubmenu

{

title="$STR_COMBAT_MODE";

items[]={"Stealth","Combat","Aware","Safe","Separator","PosUp","PosDown","PosAuto","Separator","Back"};

class Stealth

{

title="$STR_STEALTH";

key=2;

character=1;

command=cmd_stealth;

};

class Combat

{

title="$STR_COMBAT";

key=3;

character=2;

command=cmd_combat;

};

class Aware

{

title="$STR_AWARE";

key=4;

character=3;

command=cmd_aware;

};

class Safe

{

title="$STR_SAFE";

key=5;

character=4;

command=cmd_safe;

};

class PosUp

{

title="$STR_POS_UP";

key=6;

character=5;

command=cmd_pos_up;

};

class PosDown

{

title="$STR_POS_DOWN";

key=7;

character=6;

command=cmd_pos_down;

};

class PosAuto

{

title="$STR_POS_AUTO";

key=8;

character=7;

command=cmd_pos_auto;

};

};

//////////////////////////////////////////////////////////////// ////////////////////////

class RscTeam : RscSubmenu

{

title="$STR_TEAM";

items[]={"Red","Green","Blue","Yellow","Main","Separator","Assign","Back"};

class Red

{

title="$STR_TEAM_RED";

key=2;

character=1;

command=cmd_team_red;

};

class Green

{

title="$STR_TEAM_GREEN";

key=3;

character=2;

command=cmd_team_green;

};

class Blue

{

title="$STR_TEAM_BLUE";

key=4;

character=3;

command=cmd_team_blue;

};

class Yellow

{

title="$STR_TEAM_YELLOW";

key=5;

character=4;

command=cmd_team_yellow;

};

class Main

{

title="$STR_TEAM_MAIN";

key=6;

character=5;

command=cmd_team_main;

};

class Assign

{

title="$STR_ASSIGN";

key=10;

character=9;

command=-2;

menu="RscAssign";

};

};

//////////////////////////////////////////////////////////////// ////////////////////////

class RscAssign : RscSubmenu

{

title="$STR_ASSIGN";

items[]={"AssignRed","AssignGreen","AssignBlue","AssignYellow","AssignMain","Back"};

class AssignRed

{

title="$STR_ASSIGN_RED";

key=2;

character=1;

command=cmd_assign_red;

};

class AssignGreen

{

title="$STR_ASSIGN_GREEN";

key=3;

character=2;

command=cmd_assign_green;

};

class AssignBlue

{

title="$STR_ASSIGN_BLUE";

key=4;

character=3;

command=cmd_assign_blue;

};

class AssignYellow

{

title="$STR_ASSIGN_YELLOW";

key=5;

character=4;

command=cmd_assign_yellow;

};

class AssignMain

{

title="$STR_ASSIGN_MAIN";

key=6;

character=5;

command=cmd_assign_main;

};

};

//////////////////////////////////////////////////////////////// ////////////////////////

class RscRadio : RscSubmenu

{

title="$STR_RADIO";

items[]={"Alpha","Bravo","Charlie","Delta","Echo","Foxtrot","Golf","Hotel","India","Juliet","Back"};

class Alpha

{

title="$STR_RADIO_ALPHA";

key=2;

character=1;

command=cmd_radio_alpha;

};

class Bravo

{

title="$STR_RADIO_BRAVO";

key=3;

character=2;

command=cmd_radio_bravo;

};

class Charlie

{

title="$STR_RADIO_CHARLIE";

key=4;

character=3;

command=cmd_radio_charlie;

};

class Delta

{

title="$STR_RADIO_DELTA";

key=5;

character=4;

command=cmd_radio_delta;

};

class Echo

{

title="$STR_RADIO_ECHO";

key=6;

character=5;

command=cmd_radio_echo;

};

class Foxtrot

{

title="$STR_RADIO_FOXTROT";

key=7;

character=6;

command=cmd_radio_foxtrot;

};

class Golf

{

title="$STR_RADIO_GOLF";

key=8;

character=7;

command=cmd_radio_golf;

};

class Hotel

{

title="$STR_RADIO_HOTEL";

key=9;

character=8;

command=cmd_radio_hotel;

};

class India

{

title="$STR_RADIO_INDIA";

key=10;

character=9;

command=cmd_radio_india;

};

class Juliet

{

title="$STR_RADIO_JULIET";

key=11;

character=0;

command=cmd_radio_juliet;

};

};

Please Be lenient, I'm not good in making tutorials, but I hope it would help, though.

smile_o.gif

Good luck.

Thunderbird84

Share this post


Link to post
Share on other sites

Wow, amazing! wow_o.gif  Really, really appreciate your explanations. I'll copy them into my Editing Tutorials folder on my HD.  biggrin_o.gif

As to ressources in missions there's a really nice tutorial (only in german I believe) by DevilDawn. And for cutscenes I've written one myself but all the GUI stuff did scare me a bit at first. Its a pretty big thing with many many lines of code. Hard to find your way through and not to loose track of you're doing.  huh.gif

But as I'm learning it's getting clearer. And the nice thing is it's basically the same principle as in missions! smile_o.gif

Share this post


Link to post
Share on other sites
Quote[/b] ]Wow, amazing! wow_o.gif Really, really appreciate your explanations

You're the welcome.

smile_o.gif

Regards

TB84

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×