tanin69 17 Posted November 28, 2021 I'm trying to add a button and a filter dialog on map screens (briefing, in game map), but I've got this error message on mission loading : As if these controls were inheriting from RscListNbox class , ignoring the declaration : class lbl1: RscText For some reasons, a few controls display without any problems : Does anyone have any idea ? My config.cpp : class CfgPatches { class gdc_diary { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {"A3_Functions_F", "A3_Modules_F", "A3_UI_F"}; }; }; #include "base_classes.hpp" // Ecran carte en jeu class RscDisplayMainMap { //IDD 12 // Ajoute le dialogue de filtre des marqueurs class controls { #include "RscMrkFilter.cpp" }; }; // BRIEFING SCREEN class RscDisplayGetReady: RscDisplayMainMap { //IDD 37 // Ajoute le dialogue de filtre des marqueurs class controls { #include "RscMrkFilter.cpp" }; }; class RscDisplayClientGetReady: RscDisplayGetReady { //IDD 53 // Ajoute le dialogue de filtre des marqueurs class controls { #include "RscMrkFilter.cpp" }; }; class RscDisplayServerGetReady: RscDisplayGetReady { //IDD 52 // Ajoute le dialogue de filtre des marqueurs class controls { #include "RscMrkFilter.cpp" }; }; base_classes.hpp class RscText; class RscActiveText; class RscButton; class RscCheckbox; class RscControlsGroup; class ControlsBackground; class HScrollbar; class VScrollbar; class RscListNBox; RscMrkFilter.cpp : class gdc_MrkFilter_button: RscActiveText { idc= -1; style = 48; type = 11; access = 0; default = true; deletable = 0; fade = 0; //font = "PuristaMedium"; //shadow = 2; sizeEx = 0.4; action = "_ctrl = uiNameSpace getVariable 'crtlMrkFilter';if !(ctrlShown _ctrl) then {_ctrl ctrlShow true} else {_ctrl ctrlShow false}"; color[] = { 1, 1, 1, 0.6 }; colorText[] = {1, 1, 1, 1}; colorActive[] = { 1, 0.2, 0.2, 1 }; colorDisabled[] = {1,1,1,1}; /* soundEnter[] = { "", 0, 1 }; // no sound soundPush[] = { "", 0, 1 }; soundClick[] = { "", 0, 1 }; soundEscape[] = { "", 0, 1 }; */ x = safeZoneW + safeZoneX - (0.020630 * safezoneW); y = safezoneY; w = 0.020625 * safezoneW; h = 0.033 * safezoneH; text = "\GDC_mrkFilter\data\icon-filter.jpg"; tooltip = "Filtrer les marqueurs"; url = ""; }; //Filter control group class gdc_MrkFilter_grp: RscControlsGroup { idc = -1; onLoad = "uiNamespace setVariable ['crtlMrkFilter', _this select 0];"; text = ""; show = true; x = safeZoneW + safeZoneX - (0.1765 * safezoneW); y = 0.032 * safezoneH + safezoneY; h = 0.206 * safezoneH; w = 0.176 * safezoneW; class controls { class Backgrd: RscText { idc = -1; type = 0; style = 96; //x = 0.5; //y = 0.5; h = 0.206 * safezoneH; w = 0.176 * safezoneW; colorText[] = {1, 1, 1, 1}; colorBackground[]={0,0,0,1}; text = ""; }; class lbl1: RscText { idc = 1001; type = 0; style = 1; text = "Tous les marqueurs MM"; //--- ToDo: Localize; x = 0.04; y = 0.03; w = 0.07 * safezoneW; h = 0.015 * safezoneH; colorText[] = {1,1,1,1}; colorBackground[] = {-1,-1,-1,0}; sizeEx = 0.015 * safezoneH; }; class chkBx1: RscCheckbox { idc = 2001; checked = 1; x = 0.21; y = 0.02; w = 1.2 * (((safezoneW / safezoneH) min 1.2) / 40); h = 1.2 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25); }; //box blufor class Bx79: RscText { idc = 2079; x = 0.212; y = 0.08; w = 1 * (((safezoneW / safezoneH) min 1.2) / 40); h = 1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25); colorBackground[] = {0,0.3,0.6,1}; }; //box opfor class Bx89: RscText { idc = 2089; x = 0.262; y = 0.08; w = 1 * (((safezoneW / safezoneH) min 1.2) / 40); h = 1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25); colorBackground[] = {0.5,0,0,1}; }; //box guer class Bx99: RscText { idc = 2099; x = 0.312; y = 0.08; w = 1 * (((safezoneW / safezoneH) min 1.2) / 40); h = 1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25); colorBackground[] = {0,0.5,0,1}; }; //box all class Bx69: RscText { idc = 2069; type = 0; style = 2; text = "Tous"; x = 0.372; y = 0.08; w = 1 * (((safezoneW / safezoneH) min 1.2) / 40); h = 1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25); colorText[] = {1,1,1,1}; colorBackground[] = {-1,-1,-1,0}; sizeEx = 0.015 * safezoneH; }; class lbl2: RscText { idc = 1002; type = 0; style = 1; text = "Marqueurs AAP"; //--- ToDo: Localize; x = 0.04; y = 0.13; w = 0.07 * safezoneW; h = 0.015 * safezoneH; colorText[] = {1,1,1,1}; colorBackground[] = {-1,-1,-1,0}; sizeEx = 0.015 * safezoneH; }; class chkBx2a: RscCheckbox { idc = 2002; checked = 1; x = 0.21; y = 0.12; w = 1.2 * (((safezoneW / safezoneH) min 1.2) / 40); h = 1.2 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25); }; class chkBx2b: RscCheckbox { idc = 2012; checked = 1; x = 0.26; y = 0.12; w = 1.2 * (((safezoneW / safezoneH) min 1.2) / 40); h = 1.2 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25); }; class chkBx2c: RscCheckbox { idc = 2022; checked = 1; x = 0.31; y = 0.12; w = 1.2 * (((safezoneW / safezoneH) min 1.2) / 40); h = 1.2 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25); }; class chkBx2d: RscCheckbox { idc = 2032; checked = 1; x = 0.37; y = 0.12; w = 1.2 * (((safezoneW / safezoneH) min 1.2) / 40); h = 1.2 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25); }; class lbl3: RscText { idc = 1003; type = 0; style = 1; text = "Marqueurs de zone"; //--- ToDo: Localize; x = 0.04; y = 0.18; w = 0.07 * safezoneW; h = 0.015 * safezoneH; colorText[] = {1,1,1,1}; colorBackground[] = {-1,-1,-1,0}; sizeEx = 0.015 * safezoneH; }; class chkBx3: RscCheckbox { idc = 2003; checked = 1; x = 0.21; y = 0.17; w = 1.2 * (((safezoneW / safezoneH) min 1.2) / 40); h = 1.2 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25); }; class lbl4: RscText { idc = 1004; type = 0; style = 1; text = "Marqueurs autres"; //--- ToDo: Localize; x = 0.04; y = 0.23; w = 0.07 * safezoneW; h = 0.015 * safezoneH; colorText[] = {1,1,1,1}; colorBackground[] = {-1,-1,-1,0}; sizeEx = 0.015 * safezoneH; }; class chkBx4: RscCheckbox { idc = 2004; checked = 1; x = 0.21; y = 0.22; w = 1.2 * (((safezoneW / safezoneH) min 1.2) / 40); h = 1.2 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25); }; class lbl5: RscText { idc = 1005; type = 0; style = 1; text = "Tous les marqueurs joueurs"; //--- ToDo: Localize; x = 0.04; y = 0.315; w = 0.07 * safezoneW; h = 0.015 * safezoneH; colorText[] = {1,1,1,1}; colorBackground[] = {-1,-1,-1,0}; sizeEx = 0.015 * safezoneH; }; class chkBx5: RscCheckbox { idc = 2005; checked = 1; x = 0.21; y = 0.305; w = 1.2 * (((safezoneW / safezoneH) min 1.2) / 40); h = 1.2 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25); }; }; }; Share this post Link to post Share on other sites
tanin69 17 Posted November 29, 2021 And it's aaaa biiingo : idc number conflict 😡. Very weird behavior, but, well, arma is like that. Share this post Link to post Share on other sites