Jump to content
  • 0

Help with PM Compact (A2)


Reaper5150

Question

17 answers to this question

Recommended Posts

  • 0

wait add these i made a boo boo 

,00001,00002,00003,00004,00005,00006,00007,00008,00009,00010,00011

like so but i add it i for you but cope pase the bove if made any changes to it

_ALLOWED_Dialogs = _ALLOWED_Dialogs + [81000,88890,20001,20002,20003,20004,20005,20006,55510,55511,55514,55515,55516,55517,55518,55519,555120,118338,118339,571113,00001,00002,00003,00004,00005,00006,00007,00008,00009,00010,00011];

Link to comment
Share on other sites

  • 0

/*
FONTS:


LucidaConsoleB
Zeppelin33
Zeppelin33Italic
Zeppelin32
EtelkaNarrowMediumPro
Bitstream
TahomaB
EtelkaMonospaceProBold
*/

#define JTS_CT_STATIC_PM            0
#define JTS_CT_EDIT_PM            2
#define JTS_CT_COMBO_PM            4

#define JTS_ST_LEFT_PM            0x00
#define JTS_ST_SINGLE_PM            0
#define JTS_ST_MULTI_PM            16
//#define ST_WITH_RECT            160
#define JTS_ST_NO_RECT_PM            0x200

#define JTS_FontM_PM            "Zeppelin32"
#define JTS_UPSIDE_PM            112

class JTS_GUI_PM
{
    type = 0;
    idc = -1;
    style = JTS_UPSIDE_PM;
    colorText[] = {1,1,1,1};
    font = JTS_FontM_PM;
    sizeEx = 0.04;
    shadow = 0;

    colorbackground[] = {0,0,0,0.8};
};

class JTS_RscButton_PM
{
    idc = -1;
    type = 16;
    style = "0x02 + 0xC0";
    default = 0;
    shadow = 0;
    font = JTS_FontM_PM;

    animTextureNormal = "#(argb,8,8,3)color(1,1,1,1)";
    animTextureDisabled = "#(argb,8,8,3)color(1,1,1,1)";
    animTextureOver = "#(argb,8,8,3)color(1,1,1,1)";
    animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
    animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)";
    animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
    textureNoShortcut = "#(argb,8,8,3)color(0,0,0,0)";

    colorBackground[] = {0,0,0,0.8};
    colorBackgroundFocused[] = {1,1,1,1};
    colorBackground2[] = {0.75,0.75,0.75,1};
    color[] = {1,1,1,1};
    colorFocused[] = {0,0,0,1};
    color2[] = {0,0,0,1};
    colorText[] = {1,1,1,1};
    colorDisabled[] = {1,1,1,0.25};
    period = 1.2;
    periodFocus = 1.2;
    periodOver = 1.2;
    size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
    sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";

    tooltipColorText[] = {1,1,1,1};
    tooltipColorBox[] = {1,1,1,1};
    tooltipColorShade[] = {0,0,0,0.65};

    soundEnter[] = {"\ca\ui\data\sound\new1", 0.09, 1};
    soundPush[] = {"", 0.09, 1};
    soundClick[] = {"\ca\ui\data\sound\new1", 0.2, 1};
    soundEscape[] = {"\ca\ui\data\sound\mouse1", 0.2, 1};

    w = 0.095 * SafeZoneW;
    h = 0.03 * SafeZoneH;

    class TextPos
    {
        left = "0.25 * (((safezoneW / safezoneH) min 1.2) / 40)";
        top = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2";
        right = 0.005;
        bottom = 0;
    };

    class Attributes
    {
        font = JTS_FontM_PM;
        color = "#E5E5E5";
        align = "left";
        shadow = "false";
    };

    class ShortcutPos
    {
        left = "(6.25 * (((safezoneW / safezoneH) min 1.2) / 40)) - 0.0225 - 0.005";
        top = 0.005;
        w = 0.0225;
        h = 0.03;
    };

    class HitZone
    {
        left = 0;
        top = 0;
        right = 0;
        bottom = 0;
    };
};

class JTS_RscEdit_PM
{
    access = 0;
    type = 2;

    colorBackground[] = {0,0,0,0};
    colorText[] = {0.95,0.95,0.95,1};
    colorDisabled[] = {0.95,0.95,0.95,1};

    colorSelection[] = {0.8,0.8,0.8,0.8};

    autocomplete = "";
    text = "";
    size = 0.2;
    style = "0x00 + 0x40";
    font = "Bitstream";
    shadow = 2;
    sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
    canModify = 1;

    tooltipColorText[] = {1,1,1,1};
    tooltipColorBox[] = {1,1,1,1};
    tooltipColorShade[] = {0,0,0,0.65};
};

class JTS_PMText_PM
{
    type = JTS_CT_STATIC_PM;
    style = JTS_ST_LEFT_PM;
    colorText[] = {1,1,1,1};
    colorBackground[] = {0, 0, 0, 0};
    font = "EtelkaMonospaceProBold";
    sizeEx = 0.04;
};

class JTS_PMlite: JTS_PMText_PM
{
    font = "EtelkaMonospaceProBold";
    sizeEx = 0.035;
};

class JTS_RscCombo_PM
{
    style = "0x10 + 0x200";
    access = ReadAndWrite;
    type = JTS_CT_COMBO_PM;
    shadow = 0;
    maxHistoryDelay = 1;
    wholeHeight = 0.44 * SafeZoneH;
    font = JTS_FontM_PM;
    sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";

    colorSelect[] = {0,0,0,1};
    colorText[] = {1,1,1,1};
    colorBackground[] = {0,0,0,1};
    colorSelectBackground[] = {1,1,1,1};
    colorDisabled[] = {1,1,1,0.25};

    tooltipColorText[] = {1,1,1,1};
    tooltipColorBox[] = {1,1,1,1};
    tooltipColorShade[] = {0,0,0,0.65};

    soundSelect[] = {"\ca\ui\data\sound\new1",0.2,1};
    soundExpand[] = {"\ca\ui\data\sound\new1",0.2,1};
    soundCollapse[] = {"",0.1,1};

    arrowFull = "\ca\ui\data\ui_arrow_top_active_ca.paa";
    arrowEmpty = "\ca\ui\data\ui_arrow_top_ca.paa";

    class ScrollBar
    {
        autoScrollEnabled = 1;

        colorDisabled[] = {1, 1, 1, 0.3};

        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";
    };
};

class JTS_PM
{
    idd = -1;
    movingEnable = false;
    controlsBackground[] = {JTS_METRO,JTS_LINE};

    class JTS_METRO: JTS_PMText_PM
    {
        idc = -1;
        moving = 1;
        colorBackground[] = {0, 0, 0, 0.75};
         text = "";
         x = 0.2 * SafeZoneW + SafeZoneX;
         y = 0.2 * SafeZoneH + SafeZoneY;
         w = 0.3 * SafeZoneW;
         h = 0.6 * SafeZoneH;
    };

    class JTS_LINE: JTS_GUI_PM
    {
        idc = -1;
        moving = 1;
        text = "PM-Manager";
        sizeEx = 0.035;
        x = 0.2 * SafeZoneW + SafeZoneX;
        y = 0.168 * SafeZoneH + SafeZoneY;
        w = 0.3 * SafeZoneW;
        h = 0.03 * SafeZoneH;
    };

    controls[] = {JTS_EDIT_TITLE,JTS_EDIT,BUT1,BUT2,BUT3,JTS_INBOX,JTS_SEND,JTS_STAT,JTS_DESCTEXT,JTS_INFOTEXT,JTS_TYPING,JTS_TXT1,JTS_TXT2};


    class JTS_DESCTEXT: JTS_PMlite
    {
        idc = 00001;
        style = JTS_ST_SINGLE_PM + JTS_ST_MULTI_PM + JTS_ST_NO_RECT_PM;
        linespacing = 1;
        shadow = 1;
        text = "";
        x = 0.2 * SafeZoneW + SafeZoneX;
        y = 0.3 * SafeZoneH + SafeZoneY;
        w = 0.3 * SafeZoneW;
        h = 0.3 * SafeZoneH;
    };

    class JTS_INBOX: JTS_RscCombo_PM
    {
        idc = 00002;
        onLBSelChanged = "ctrlsettext [00001, lbData [00002, lbCursel 00002]]";
        x = 0.21 * SafeZoneW + SafeZoneX;
        y = 0.25 * SafeZoneH + SafeZoneY;
        w = 0.18 * SafeZoneW;
        h = 0.03 * SafeZoneH;

    };

    class JTS_SEND: JTS_RscCombo_PM
    {
        idc = 00003;
        onLBSelChanged = "JTS_RECEIVER_PM = lbText [00003, lbCursel 00003]";
        wholeHeight = 0.2 * SafeZoneH;
        x = 0.395 * SafeZoneW + SafeZoneX;
        y = 0.61 * SafeZoneH + SafeZoneY;
        w = 0.095 * SafeZoneW;
        h = 0.03 * SafeZoneH;

    };

    class JTS_EDIT: JTS_RscEdit_PM
    {
        idc = 00004;
        text = "";
        toolTip = "Enter your message here";
        x = 0.21 * SafeZoneW + SafeZoneX;
        y = 0.75 * SafeZoneH + SafeZoneY;
        w = 0.28 * SafeZoneW;
        h = 0.04 * SafeZoneH;
    };

    class JTS_STAT: JTS_RscCombo_PM
    {
        idc = 00005;
        onLBSelChanged = "player setVariable ['JTS_PM_STAT',lbValue [00005, lbCursel 00005], true]";
        toolTip = "Enable or disable the receiving of personal messages";
        wholeHeight = 0.2 * SafeZoneH;
        x = 0.395 * SafeZoneW + SafeZoneX;
        y = 0.25 * SafeZoneH + SafeZoneY;
        w = 0.095 * SafeZoneW;
        h = 0.03 * SafeZoneH;

    };

    class JTS_EDIT_TITLE: JTS_RscEdit_PM
    {
        idc = 00006;
        text = "";
        toolTip = "Enter the title of the message here. Maximum length of the title is 15 characters";
        x = 0.21 * SafeZoneW + SafeZoneX;
        y = 0.7 * SafeZoneH + SafeZoneY;
        w = 0.19 * SafeZoneW;
        h = 0.04 * SafeZoneH;
    };

    class JTS_INFOTEXT: JTS_PMlite
    {
        idc = 00007;
        text = "";
        colorText[] = {0,1,0,1};
        x = 0.21 * SafeZoneW + SafeZoneX;
        y = 0.65 * SafeZoneH + SafeZoneY;
        w = 0.28 * SafeZoneW;
        h = 0.032 * SafeZoneH;
    };

    class JTS_TYPING: JTS_RscEdit_PM
    {
        idc = 00008;
        text = "";
        x = 0.4 * SafeZoneW + SafeZoneX;
        y = 0.7 * SafeZoneH + SafeZoneY;
        w = 0.09 * SafeZoneW;
        h = 0.04 * SafeZoneH;
    };

    class BUT1: JTS_RscButton_PM
    {
        idc = 00009;
        text = "SEND";
        action = "[] spawn JTS_FNC_SEND";
        x = 0.2 * SafeZoneW + SafeZoneX;
        y = 0.805 * SafeZoneH + SafeZoneY;
    };

    class BUT2: JTS_RscButton_PM
    {
        idc = 00010;
        text = "CLOSE";
        action = "Closedialog 0";
        x = 0.405 * SafeZoneW + SafeZoneX;
        y = 0.805 * SafeZoneH + SafeZoneY;
    };

    class BUT3: JTS_RscButton_PM
    {
        idc = 00011;
        text = "REMOVE";
        action = "[] spawn JTS_FNC_PM_DELETE";
        x = 0.3025 * SafeZoneW + SafeZoneX;
        y = 0.805 * SafeZoneH + SafeZoneY;
    };

    class JTS_TXT1: JTS_PMText_PM
    {
        idc = -1;
        text = "Inbox:";
        x = 0.21 * SafeZoneW + SafeZoneX;
        y = 0.21 * SafeZoneH + SafeZoneY;
        w = 0.25 * SafeZoneW;
        h = 0.032 * SafeZoneH;
    };

    class JTS_TXT2: JTS_PMText_PM
    {
        idc = -1;
        text = "Send to:";
        x = 0.21 * SafeZoneW + SafeZoneX;
        y = 0.606 * SafeZoneH + SafeZoneY;
        w = 0.195 * SafeZoneW;
        h = 0.032 * SafeZoneH;
    };
};
 

Link to comment
Share on other sites

  • 0

@killerkiwi it is working but kills me when I press one of the tabs and my logs show this.

20:04:43 NetServer::SendMsg: cannot find channel #736274861, users.card=0

20:04:43 NetServer: users.get failed when sending to 736274861

20:04:43 Message not sent - error 0, message ID = ffffffff, to 736274861 (Savage)

20:04:43 NetServer::SendMsg: cannot find channel #736274861, users.card=0

And it banned me lmao Ugh!

Link to comment
Share on other sites

  • 0

SOLVED

You will need to add the dialog numbers ,00001,00002,00003,00004,00005,00006,00007,00008,00009,00010,00011

In your infistar AHconfig.sqf on both _ALLOWED_Dialogs = [  around line 105 and also _ALLOWED_Dialogs = _ALLOWED_Dialogs + around line 121 in order for this to work...I should of been paying attention myself lol

Thank you @killerkiwi for your help with this!

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...