Hallo,
leider kenne ich mich im Bereich GUI gar nicht aus.
Ich wollte eine neue "skinm.hpp" dialog einführen.
Habe die Datei in den dialog Ordner gepackt.
Spoiler anzeigen
class skinm {
idd = 1000;
name = "skinm";
onLoad = "uiNamespace setVariable ['skinm', _this select 0];";
onUnLoad = "uiNamespace setVariable ['skinm', nil];";
movingEnable = false;
enableSimulation = true;
class controlsBackground {
class Background_1100: RscText
{
idc = 1100;
text = "";
x = 0.342569 * safezoneW + safezoneX;
y = 0.360123 * safezoneH + safezoneY;
w = 0.336458 * safezoneW;
h = 0.211111 * safezoneH;
ColorBackground[] = {0,0,0,0.694117};
};
};
class controls {
class kleiderbutton: RscButton
{
idc = 1101;
text = "Uniform";
onButtonClick = [0,0] call dk_skinChange_fnc_clanskinmenu;
x = 0.353734 * safezoneW + safezoneX;
y = 0.469350 * safezoneH + safezoneY;
w = 0.138538 * safezoneW;
h = 0.067698 * safezoneH;
ColorBackground[] = {0,0,0.803921,1};
ColorText[] = {1,1,1,1};
font = TahomaB;
colorFocused[] = {0,0,0,1};
colorDisabled[] = {0,0,0,1};
};
class rucksackbutton: RscButton
{
idc = 1102;
text = "Rucksack";
onButtonClick = [1,1] call dk_skinChange_fnc_clanskinmenu;
x = 0.5 * safezoneW + safezoneX;
y = 0.46935 * safezoneH + safezoneY;
w = 0.125 * safezoneW;
h = 0.067698 * safezoneH;
ColorBackground[] = {0,0,0.803921,1};
ColorText[] = {1,1,1,1};
font = TahomaB;
colorFocused[] = {0,0,0,1};
colorDisabled[] = {0,0,0,1};
};
class head: RscStructuredText
{
idc = 1103;
text = "Was möchtest du bearbeiten";
x = 0.353734 * safezoneW + safezoneX;
y = 0.374110 * safezoneH + safezoneY;
w = 0.315625 * safezoneW;
h = 0.074074 * safezoneH;
ColorBackground[] = {0,0,0.803921,1};
ColorText[] = {1,1,1,1};
font = TahomaB;
SizeEx = 1.0;
};
class closebutton: RscButton
{
idc = 1104;
text = "X";
onButtonClick = "closeDialog 0;";
x = 0.63 * safezoneW + safezoneX;
y = 0.46935 * safezoneH + safezoneY;
w = 0.039 * safezoneW;
h = 0.067698 * safezoneH;
ColorText[] = {1,1,1,1};
font = TahomaB;
SizeEx = 0.9;
colorFocused[] = {0,0,0,1};
colorDisabled[] = {0,0,0,1};
};
};
};
Dann habe ich im masterhandler " #include "skinm.hpp" " eingegeben.
+ in der Functions hpp " class skinm {} " hinzugefügt.
Fehlermeldung:
Wäre klasse wenn mir das einer erklären könnte. LG!!