Jump to content

[RELEASE] Traps server menu


FG_Trap

Recommended Posts

  • 2 months later...
  • 1 month later...

Define the baseclass then this should work!

class RscListBox
{
    access = 0;
    type = 5;
    w = 0.4;
    h = 0.4;
    rowHeight = 0;
    colorText[] = {0.8784,0.8471,0.651,1};
    colorScrollbar[] = {0.95,0.95,0.95,1};
    colorSelect[] = {0.95,0.95,0.95,1};
    colorSelect2[] = {0.95,0.95,0.95,1};
    colorSelectBackground[] = {0,0,0,1};
    colorSelectBackground2[] = {0.8784,0.8471,0.651,1};
    colorBackground[] = {0,0,0,1};
    soundSelect[] = {"",0.1,1};
    arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)";
    arrowFull = "#(argb,8,8,3)color(1,1,1,1)";
    class ScrollBar
    {
        color[] = {1,1,1,0.6};
        colorActive[] = {1,1,1,1};
        colorDisabled[] = {1,1,1,0.3};
        shadow = 0;
        thumb = "\ca\ui\data\ui_scrollbar_thumb_ca.paa";
        arrowFull = "\ca\ui\data\ui_arrow_top_active_ca.paa";
        arrowEmpty = "\ca\ui\data\ui_arrow_top_ca.paa";
        border = "\ca\ui\data\ui_border_scroll_ca.paa";
    };
    style = 16;
    font = "Zeppelin32";
    shadow = 2;
    sizeEx = 0.03921;
    color[] = {1,1,1,1};
    period = 1.2;
    maxHistoryDelay = 1;
    autoScrollSpeed = -1;
    autoScrollDelay = 5;
    autoScrollRewind = 0;
};

Link to comment
Share on other sites

No @GodZilla  place this in description.hpp

 class RscListBox 
{
    type = 5;
    w = 0.4;
    h = 0.4;
    rowHeight = 0;
    colorText[] = {1,1,1,1};
    colorScrollbar[] = {1,1,1,1};
    colorSelect[] = {1,1,1,1};
    colorSelect2[] = {1,1,1,1};
    colorSelectBackground[] = {1,1,1,1};
    colorSelectBackground2[] = {1,1,1,1};
    colorBackground[] = {1,1,1,1};
    soundSelect[] = {"",0.1,1};
    arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)";
    arrowFull = "#(argb,8,8,3)color(1,1,1,1)";
    class ScrollBar
    {
        color[] = {1,1,1,1};
        colorActive[] = {1,1,1,1};
        colorDisabled[] = {1,1,1,0.3};
        shadow = 0;
        thumb = "dayz_code\gui\thumb_ca.paa";                                                    Change path
        arrowFull = "dayz_code\gui\arrowfull_ca.paa";                                        Change path
        arrowEmpty = "dayz_code\gui\arrowempty_ca.paa";                                Change path
        border = "dayz_code\gui\border_ca.paa";                                                  Change path
    };
    style = 16;
    font = "Zeppelin32";
    shadow = 2;
    sizeEx = 0.03921;
    color[] = {1,1,1,1};
    period = 1.2;
    maxHistoryDelay = 1;
    autoScrollSpeed = -1;
    autoScrollDelay = 5;
    autoScrollRewind = 0;
};

Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...
21 hours ago, Doggyman said:

Hello all, works fine on Server but is there a Chance to build a Helipad with deploy anything?
With the Toolbox works but not with Menu.
No RPT issue btw.
Hope anyone can help me.

you can use this menu to deploy objects

 

 

Link to comment
Share on other sites

  • 5 weeks later...
  • 2 months later...

Hello, how would I disable the no grass option in menu?

Nice script BTW.

Thanks.

Edit: Ok, I figured it out. I just commented out the grass section in the dialog.hpp file.

Edited by Hux
Solved
Link to comment
Share on other sites

  • 3 months later...
On 3/10/2020 at 7:08 PM, ShyVicZ said:

Hello,

so i get this error,

ErrorMessage: File mpmissions\DayZ_Epoch_24.Napf\NLZ\tmenu\dialog.hpp, line 90: /tmenu/Controls.TMButton2: Undefined base class 'RscButton'

anyknow why?

 

Spent the last 7 hours trying to fix exactly this error right here, the instructions must be missing something critical here. Because i have went over it a thousand times. And verified EVERY single file location

Link to comment
Share on other sites

On 10/20/2020 at 11:33 AM, Th3-Hunter333 said:

Spent the last 7 hours trying to fix exactly this error right here, the instructions must be missing something critical here. Because i have went over it a thousand times. And verified EVERY single file location

Ok for anyone having any issues im going to paste this here for people to have.

Open up dialog.hpp and edit line 122 to this here, he forgot the execvm portion of this.
onButtonClick = "execVM 'custom\tmenu\color.sqf';";

Open up your description.ext and add this line near the bottom directly above this line

#include "dayz_code\gui\description.hpp"
#include "dayz_code\Configs\CfgLoot\CfgLoot.hpp"
#include "dayz_code\Configs\CfgServerTrader.hpp"

 

Here is the line your adding

class RscButton {
    access = 0;
    type = 1;
    text = "";
    colorText[] = {0.8784,0.8471,0.651,1};
    colorDisabled[] = {0.4,0.4,0.4,1};
    colorBackground[] = {1,0.537,0,0.5};
    colorBackgroundDisabled[] = {0.95,0.95,0.95,1};
    colorBackgroundActive[] = {1,0.537,0,1};
    colorFocused[] = {1,0.537,0,1};
    colorShadow[] = {0.023529,0,0.0313725,1};
    colorBorder[] = {0.023529,0,0.0313725,1};
    soundEnter[] = {"\ca\ui\data\sound\onover",0.09,1};
    soundPush[] = {"\ca\ui\data\sound\new1",0,0};
    soundClick[] = {"\ca\ui\data\sound\onclick",0.07,1};
    soundEscape[] = {"\ca\ui\data\sound\onescape",0.09,1};
    style = 2;
    x = 0;
    y = 0;
    w = 0.095589;
    h = 0.039216;
    shadow = 2;
    font = "Zeppelin32";
    sizeEx = 0.03921;
    offsetX = 0.003;
    offsetY = 0.003;
    offsetPressedX = 0.002;
    offsetPressedY = 0.002;
    borderSize = 0;
};
 

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 3 weeks later...
  • 2 weeks later...
  • 7 months later...
On 10/21/2020 at 6:31 PM, Th3-Hunter333 said:

Ok for anyone having any issues im going to paste this here for people to have.

Open up dialog.hpp and edit line 122 to this here, he forgot the execvm portion of this.
onButtonClick = "execVM 'custom\tmenu\color.sqf';";

Open up your description.ext and add this line near the bottom directly above this line

#include "dayz_code\gui\description.hpp"
#include "dayz_code\Configs\CfgLoot\CfgLoot.hpp"
#include "dayz_code\Configs\CfgServerTrader.hpp"

 

Here is the line your adding

class RscButton {
    access = 0;
    type = 1;
    text = "";
    colorText[] = {0.8784,0.8471,0.651,1};
    colorDisabled[] = {0.4,0.4,0.4,1};
    colorBackground[] = {1,0.537,0,0.5};
    colorBackgroundDisabled[] = {0.95,0.95,0.95,1};
    colorBackgroundActive[] = {1,0.537,0,1};
    colorFocused[] = {1,0.537,0,1};
    colorShadow[] = {0.023529,0,0.0313725,1};
    colorBorder[] = {0.023529,0,0.0313725,1};
    soundEnter[] = {"\ca\ui\data\sound\onover",0.09,1};
    soundPush[] = {"\ca\ui\data\sound\new1",0,0};
    soundClick[] = {"\ca\ui\data\sound\onclick",0.07,1};
    soundEscape[] = {"\ca\ui\data\sound\onescape",0.09,1};
    style = 2;
    x = 0;
    y = 0;
    w = 0.095589;
    h = 0.039216;
    shadow = 2;
    font = "Zeppelin32";
    sizeEx = 0.03921;
    offsetX = 0.003;
    offsetY = 0.003;
    offsetPressedX = 0.002;
    offsetPressedY = 0.002;
    borderSize = 0;
};
 

I have installed this on a 1.0.7.1 Epoch server and have applied the changes above but am still getting an error:  ErrorMessage: File mpmissions\__cur_mp.chernarus\scripts\tmenu\dialog.hpp, line 114: '/tmenu/Controls/TMButton2.': '"' encountered instead of '='

The referenced line is in bold below:

class TMButton2: RscButton
{
    idc = 1601;
    text = "Color Change"; 
    x = 0.6575 * safezoneW + safezoneX;
    y = 0.332 * safezoneH + safezoneY;
    w = 0.13125 * safezoneW;
    h = 0.042 * safezoneH;
    colorText[] = {1,1,1,1};
    colorBackground[] = {0,0,0,0.7};
    colorActive[] = {0,0,0,0.7};
    onButtonClick = 'scripts\tmenu\scripts\color.sqf';";
};

I'm not seeing the problem. Anyone?

Also related question: Does this even work with 1.0.7.1? Can anyone recommend another script that I could use to change view distance and display rules?

Thanks for any help!

 

Link to comment
Share on other sites

  • 2 months later...
I would like to get the menu of the FG_Trap to run, unfortunately the menu doesn't open.
At first the server hangs. Message waiting for host. With the changes from Th3-Hunter333 I was able to join the server. Unfortunately the menu does not open. Is the menu running at someone's place in the meantime?
Thank you
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...