Advertisement
Faguss

OFP Resource.cpp - player list in the lower right corner

Feb 24th, 2016
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 11.76 KB | None | 0 0
  1.     // Mission selection with list of players (aspect + tweak)
  2. class RscDisplayRemoteMissions:RscDisplayServer
  3.     {
  4.     access=3;
  5.     controls[]={"Background1","Background2","Title","PlayersTitleBackground","PlayersTitle","PlayersBackground","Players","ButtonDifficulty","ButtonEditor","ButtonCancel","ButtonOK"};
  6.  
  7.     class PlayersTitleBackground:RscText        // edited (tweak)
  8.         {
  9.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  10.         y=__EVAL(1 + AR_modifY - 0.025 - 0.125 - AR_PlayerListY);
  11.         w=__EVAL(0.25 + AR_PlayerListX);
  12.         h=0.025;
  13.         colorBackground[]={1,1,1,0.75};
  14.         colorText[]={0,0,0,1};
  15.         text="";
  16.         };
  17.  
  18.     class PlayersTitle:RscText      // edited (tweak)
  19.         {
  20.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  21.         y=__EVAL(1 + AR_modifY - 0.025 - 0.125 - AR_PlayerListY);
  22.         w=__EVAL(0.25 + AR_PlayerListX);
  23.         h=0.025;
  24.         colorBackground[]={1,1,1,0.75};
  25.         colorText[]={0,0,0,1};
  26.         text="$STR_DISP_SRVSETUP_PLAYERS";
  27.         style="0 +          160";
  28.         };
  29.  
  30.     class PlayersBackground:RscText     // edited (tweak)
  31.         {
  32.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  33.         y=__EVAL(1 + AR_modifY - 0.125 - AR_PlayerListY);
  34.         w=__EVAL(0.25 + AR_PlayerListX);
  35.         h=__EVAL(0.125 + AR_PlayerListY);
  36.         colorBackground[]={0,0,0,0.75};
  37.         colorText[]={0,0,0,1};
  38.         text="";
  39.         };
  40.  
  41.     class Players:RscListBox        // edited (tweak)
  42.         {
  43.         idc=105;
  44.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  45.         y=__EVAL(1 + AR_modifY - 0.125 - AR_PlayerListY);
  46.         w=__EVAL(0.25 + AR_PlayerListX);
  47.         h=__EVAL(0.125 + AR_PlayerListY);
  48.         colorSelect[]={1,1,1,1};
  49.         colorText[]={1,1,1,0.75};
  50.         rowHeight=0.025;
  51.         };
  52.  
  53.     class ButtonCancel:RscActiveMenu        // edited (aspect + tweak)
  54.         {
  55.         idc=2;
  56.         text="$STR_DISP_DISCONNECT";
  57.         x=0.65;
  58.         y=__EVAL(0.9 + AR_modifY);
  59.         w=0.096;    // -0.054
  60.         h=0.05;
  61.         soundClick[]={"ui\ui_cc",0.2,1};
  62.         };
  63.     };
  64.  
  65.     // Client screen (aspect + tweak)
  66. class RscDisplayClient
  67.     {
  68.     access=3;
  69.     idd=18;
  70.     movingEnable=1;
  71.     controls[]={"Background","PlayersTitleBackground","PlayersTitle","PlayersBackground","Players"};
  72.  
  73.     class Background:RscText        // edited
  74.         {
  75.         idc=101;
  76.         style=2;
  77.         x=__EVAL(0 - AR_modifX);
  78.         y=__EVAL(0 - AR_modifY);
  79.         w=__EVAL(1 + AR_modifX * 2);
  80.         h=__EVAL(1 + AR_modifY * 2);
  81.         text="$STR_DISP_CLIENT_TEXT";
  82.         font="SteelfishB128";
  83.         sizeEx=0.098;
  84.         colorText[]={1,1,1,1};
  85.         colorBackground[]={0,0,0,1};
  86.         };
  87.  
  88.     class PlayersTitleBackground:RscText        // edited (tweak)
  89.         {
  90.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  91.         y=__EVAL(1 + AR_modifY - 0.025 - 0.525 + AR_PlayerListY);
  92.         w=__EVAL(0.25 + AR_PlayerListX);
  93.         h=0.025;
  94.         colorBackground[]={1,1,1,0.75};
  95.         colorText[]={0,0,0,1};
  96.         text="";
  97.         };
  98.  
  99.     class PlayersTitle:RscText      // edited (tweak)
  100.         {
  101.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  102.         y=__EVAL(1 + AR_modifY - 0.025 - 0.525 + AR_PlayerListY);
  103.         w=__EVAL(0.25 + AR_PlayerListX);
  104.         h=0.025;
  105.         colorBackground[]={1,1,1,0.75};
  106.         colorText[]={0,0,0,1};
  107.         text="$STR_DISP_SRVSETUP_PLAYERS";
  108.         style="0 +          160";
  109.         };
  110.  
  111.     class PlayersBackground:RscText     // edited (tweak)
  112.         {
  113.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  114.         y=__EVAL(1 + AR_modifY - 0.525 - AR_PlayerListY);
  115.         w=__EVAL(0.25 + AR_PlayerListX);
  116.         h=__EVAL(0.525 + AR_PlayerListY);   // +0.4
  117.         colorBackground[]={0,0,0,0.75};
  118.         colorText[]={0,0,0,1};
  119.         text="";
  120.         };
  121.  
  122.     class Players:RscListBox        // edited (tweak)
  123.         {
  124.         idc=102;
  125.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  126.         y=__EVAL(1 + AR_modifY - 0.525 - AR_PlayerListY);
  127.         w=__EVAL(0.25 + AR_PlayerListX);
  128.         h=__EVAL(0.525 + AR_PlayerListY);
  129.         colorSelect[]={1,1,1,1};
  130.         colorText[]={1,1,1,0.75};
  131.         rowHeight=0.025;
  132.         };
  133.     };
  134.  
  135.     // Briefing MP Server (aspect + tweak)
  136. class RscDisplayServerGetReady:RscDisplayGetReady
  137.     {
  138.     access=3;
  139.     idd=52;
  140.     controls[]={"Background3","Background4","TitleTop","PlayersTitleBackground","PlayersTitle","PlayersBackground","Players","ButtonContinue","ButtonCancel"};
  141.  
  142.     class PlayersTitleBackground:RscText        // edited (tweak)
  143.         {
  144.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  145.         y=__EVAL(1 + AR_modifY - 0.025 - 0.125 - AR_PlayerListY);
  146.         w=__EVAL(0.25 + AR_PlayerListX);
  147.         h=0.025;
  148.         colorBackground[]={1,1,1,0.75};
  149.         colorText[]={0,0,0,1};
  150.         text="";
  151.         };
  152.  
  153.     class PlayersTitle:RscText      // edited (tweak)
  154.         {
  155.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  156.         y=__EVAL(1 + AR_modifY - 0.025 - 0.125 - AR_PlayerListY);
  157.         w=__EVAL(0.25 + AR_PlayerListX);
  158.         h=0.025;
  159.         colorBackground[]={1,1,1,0.75};
  160.         colorText[]={0,0,0,1};
  161.         text="$STR_DISP_SRVSETUP_PLAYERS";
  162.         style="0 +          160";
  163.         };
  164.  
  165.     class PlayersBackground:RscText     // edited (tweak)
  166.         {
  167.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  168.         y=__EVAL(1 + AR_modifY - 0.125 - AR_PlayerListY);
  169.         w=__EVAL(0.25 + AR_PlayerListX);
  170.         h=__EVAL(0.125 + AR_PlayerListY);
  171.         colorBackground[]={0,0,0,0.75};
  172.         colorText[]={0,0,0,1};
  173.         text="";
  174.         };
  175.  
  176.     class Players:RscListBox        // edited (tweak)
  177.         {
  178.         idc=110;
  179.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  180.         y=__EVAL(1 + AR_modifY - 0.125 - AR_PlayerListY);
  181.         w=__EVAL(0.25 + AR_PlayerListX);
  182.         h=__EVAL(0.125 + AR_PlayerListY);
  183.         colorSelect[]={1,1,1,1};
  184.         colorText[]={1,1,1,0.75};
  185.         rowHeight=0.025;
  186.         };
  187.  
  188.     class ButtonContinue:RscActiveMenu      // edited
  189.         {
  190.         idc=1;
  191.         x=0.85;
  192.         y=__EVAL(0.9 + AR_modifY);
  193.         w=0.15;
  194.         h=0.05;
  195.         color[]={1,1,1,1};
  196.         colorBackground="{0, 0, 0, 0.5}";
  197.         colorActive[]={1,0,0,1};
  198.         text="$STR_DISP_SERVER_READY";
  199.         default=1;
  200.         };
  201.  
  202.     class ButtonCancel:RscActiveMenu        // edited (aspect + tweak)
  203.         {
  204.         idc=2;
  205.         x=__EVAL(0.7 - AR_PlayerListX);
  206.         y=__EVAL(0.9 + AR_modifY);
  207.         w=0.09;     // -0.06
  208.         h=0.05;
  209.         color[]={1,1,1,1};
  210.         colorBackground="{0, 0, 0, 0.5}";
  211.         colorActive[]={1,0,0,1};
  212.         text="$STR_DISP_CANCEL";
  213.         };
  214.     };
  215.  
  216.     // Briefing MP Client (aspect + tweak)
  217. class RscDisplayClientGetReady:RscDisplayGetReady
  218.     {
  219.     access=3;
  220.     idd=53;
  221.     controls[]={"Background3","Background4","TitleTop","PlayersTitleBackground","PlayersTitle","PlayersBackground","Players","ButtonContinue","ButtonCancel"};
  222.  
  223.     class PlayersTitleBackground:RscText        // edited (tweak)
  224.         {
  225.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  226.         y=__EVAL(1 + AR_modifY - 0.025 - 0.125 - AR_PlayerListY);
  227.         w=__EVAL(0.25 + AR_PlayerListX);
  228.         h=0.025;
  229.         colorBackground[]={1,1,1,0.75};
  230.         colorText[]={0,0,0,1};
  231.         text="";
  232.         };
  233.  
  234.     class PlayersTitle:RscText      // edited (tweak)
  235.         {
  236.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  237.         y=__EVAL(1 + AR_modifY - 0.025 - 0.125 - AR_PlayerListY);
  238.         w=__EVAL(0.25 + AR_PlayerListX);
  239.         h=0.025;
  240.         colorBackground[]={1,1,1,0.75};
  241.         colorText[]={0,0,0,1};
  242.         text="$STR_DISP_SRVSETUP_PLAYERS";
  243.         style="0 +          160";
  244.         };
  245.  
  246.     class PlayersBackground:RscText     // edited (tweak)
  247.         {
  248.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  249.         y=__EVAL(1 + AR_modifY - 0.125 - AR_PlayerListY);
  250.         w=__EVAL(0.25 + AR_PlayerListX);
  251.         h=__EVAL(0.125 + AR_PlayerListY);
  252.         colorBackground[]={0,0,0,0.75};
  253.         colorText[]={0,0,0,1};
  254.         text="";
  255.         };
  256.  
  257.     class Players:RscListBox        // edited (tweak)
  258.         {
  259.         idc=110;
  260.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  261.         y=__EVAL(1 + AR_modifY - 0.125 - AR_PlayerListY);
  262.         w=__EVAL(0.25 + AR_PlayerListX);
  263.         h=__EVAL(0.125 + AR_PlayerListY);
  264.         colorSelect[]={1,1,1,1};
  265.         colorText[]={1,1,1,0.75};
  266.         rowHeight=0.025;
  267.         };
  268.  
  269.     class ButtonContinue:RscActiveMenu      // edited
  270.         {
  271.         default=1;
  272.         idc=1;
  273.         x=0.85;
  274.         y=__EVAL(0.9 + AR_modifY);
  275.         w=0.15;
  276.         h=0.05;
  277.         color[]={1,1,1,1};
  278.         colorBackground="{0, 0, 0, 0.5}";
  279.         colorActive[]={1,0,0,1};
  280.         text="$STR_DISP_CLIENT_READY";
  281.         };
  282.  
  283.     class ButtonCancel:RscActiveMenu        // edited (aspect + tweak)
  284.         {
  285.         idc=2;
  286.         x=__EVAL(0.7 -0.096 - AR_PlayerListX);  // -0.096
  287.         y=__EVAL(0.9 + AR_modifY);
  288.         w=0.096;    // -0.054
  289.         h=0.05;
  290.         color[]={1,1,1,1};
  291.         colorBackground="{0, 0, 0, 0.5}";
  292.         colorActive[]={1,0,0,1};
  293.         text="$STR_DISP_DISCONNECT";
  294.         };
  295.     };
  296.  
  297.     // Debriefing (aspect + tweak)
  298. class RscDisplayDebriefing:RscDisplayBackgroundStripes
  299.     {
  300.     access=3;
  301.     idd=50;
  302.     movingEnable=0;
  303.     objects[]={"Notepad","Statistics"};
  304.     controlsBackground[]={"Background1","Background2"};
  305.     controls[]={"Background3","Background4","TitleTop","PlayersTitleBackground","PlayersTitle","PlayersBackground","Players","ButtonRestart","ButtonContinue"};
  306.  
  307.     class Notepad:RscObject
  308.         {
  309.         model="blok_selmis2.p3d";
  310.         idc=-1;
  311.         type=83;
  312.         autoOpen=1;
  313.         autoZoom=0;
  314.         animSpeed=1;
  315.         animation="blok_mis.rtm";
  316.         position[]={0.2,0.02,1.2};
  317.         direction[]={0,"-sin 15","cos 15"};
  318.         up[]={0,"cos 15","sin 15"};
  319.         positionBack[]={0.3,0.1,1.4};
  320.         inBack=0;
  321.         enableZoom=1;
  322.         zoomDuration=0.5;
  323.         scale=2;
  324.         controls[]={"Left","Right"};
  325.  
  326.         class Left:RscHTML
  327.             {
  328.             idc=101;
  329.             type=23;
  330.             selection="papir";
  331.             x=0;
  332.             y=0;
  333.             w=1;
  334.             h=1;
  335.             angle=0;
  336.             size=0.35;
  337.             filename="";
  338.             colorLink[]={0,0,0,1};
  339.             colorLinkActive[]={0,0,0,1};
  340.             };
  341.  
  342.         class Right:RscHTML
  343.             {
  344.             idc=102;
  345.             type=23;
  346.             selection="papir2";
  347.             x=0;
  348.             y=0;
  349.             w=1;
  350.             h=1;
  351.             angle=0;
  352.             size=0.35;
  353.             filename="";
  354.             colorLink[]={0.2,0.2,0.4,1};
  355.             colorLinkActive[]={0.4,0.17,0.24,1};
  356.             };
  357.         };
  358.  
  359.     class Statistics:RscObject
  360.         {
  361.         model="desky.p3d";
  362.         idc=105;
  363.         type=82;
  364.         position[]={-0.275,0.024,1.1};
  365.         direction[]={0,-0.259,0.966};
  366.         up[]={0,0.966,0.259};
  367.         positionBack[]={-0.275,0.024,1.1};
  368.         inBack=0;
  369.         enableZoom=0;
  370.         zoomDuration=0.5;
  371.         scale=2;
  372.         controls[]={"Statistics"};
  373.  
  374.         class Statistics:RscHTML
  375.             {
  376.             idc=103;
  377.             type=23;
  378.             selection="papir";
  379.             x=0;
  380.             y=0;
  381.             w=1;
  382.             h=1;
  383.             angle=0;
  384.             size=0.34;
  385.             filename="";
  386.             colorLink[]={0.2,0.2,0.4,1};
  387.             colorLinkActive[]={0.4,0.17,0.24,1};
  388.             };
  389.         };
  390.  
  391.     class Background3:RscBackgroundStripeTopAlpha
  392.         {
  393.         };
  394.  
  395.     class TitleTop:RscText      // edited
  396.         {
  397.         x=__EVAL(0.0 - AR_modifX);
  398.         y=__EVAL(0.0 - AR_modifY);
  399.         w=__EVAL(1 + AR_modifX * 2);
  400.         h=0.125;
  401.         style=2;
  402.         text="$STR_DISP_DEBRIEFING";
  403.         font="SteelfishB128";
  404.         sizeEx=0.098;
  405.         colorText[]={1,1,1,1};
  406.         };
  407.  
  408.     class Background4:RscBackgroundStripeBottomAlpha
  409.         {
  410.         };
  411.  
  412.     class PlayersTitleBackground:RscText        // edited (tweak)
  413.         {
  414.         idc=106;
  415.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  416.         y=__EVAL(1 + AR_modifY - 0.175 - 0.025 - AR_PlayerListY);
  417.         w=__EVAL(0.25 + AR_PlayerListX);
  418.         h=0.025;
  419.         colorBackground[]={1,1,1,0.75};
  420.         colorText[]={0,0,0,1};
  421.         text="";
  422.         };
  423.  
  424.     class PlayersTitle:RscText      // edited (tweak)
  425.         {
  426.         idc=107;
  427.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  428.         y=__EVAL(1 + AR_modifY - 0.175 - 0.025 - AR_PlayerListY);
  429.         w=__EVAL(0.25 + AR_PlayerListX);
  430.         h=0.025;
  431.         colorBackground[]={1,1,1,0.75};
  432.         colorText[]={0,0,0,1};
  433.         text="$STR_DISP_SRVSETUP_PLAYERS";
  434.         style="0 +          160";
  435.         };
  436.  
  437.     class PlayersBackground:RscText     // edited (tweak)
  438.         {
  439.         idc=108;
  440.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  441.         y=__EVAL(1 + AR_modifY - 0.175 - AR_PlayerListY);
  442.         w=__EVAL(0.25 + AR_PlayerListX);
  443.         h=__EVAL(0.175 + AR_PlayerListY);   // +0.05
  444.         colorBackground[]={0,0,0,0.75};
  445.         colorText[]={0,0,0,1};
  446.         text="";
  447.         };
  448.  
  449.     class Players:RscListBox        // edited (tweak)
  450.         {
  451.         idc=109;
  452.         x=__EVAL(1 + AR_modifX - 0.25 - AR_PlayerListX);
  453.         y=__EVAL(1 + AR_modifY - 0.175 - AR_PlayerListY);
  454.         w=__EVAL(0.25 + AR_PlayerListX);
  455.         h=__EVAL(0.175 + AR_PlayerListY);   // +0.05
  456.         colorSelect[]={1,1,1,1};
  457.         colorText[]={1,1,1,0.75};
  458.         rowHeight=0.025;
  459.         };
  460.  
  461.     class ButtonRestart:RscActiveMenu       // edited
  462.         {
  463.         idc=104;
  464.         x=0.7;
  465.         y=__EVAL(0.9 + AR_modifY);
  466.         w=0.15;
  467.         h=0.05;
  468.         color[]={1,1,1,1};
  469.         colorBackground="{0, 0, 0, 0.5}";
  470.         colorActive[]={1,0,0,1};
  471.         text="$STR_DISP_DEBRIEFING_RESTART";
  472.         };
  473.  
  474.     class ButtonContinue:RscActiveMenu      // edited
  475.         {
  476.         idc=2;
  477.         x=0.85;
  478.         y=__EVAL(0.9 + AR_modifY);
  479.         w=0.15;
  480.         h=0.05;
  481.         color[]={1,1,1,1};
  482.         colorBackground="{0, 0, 0, 0.5}";
  483.         colorActive[]={1,0,0,1};
  484.         text="$STR_DISP_CONTINUE";
  485.         default=1;
  486.         };
  487.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement