Ich habe eine Frage kann ich z.b den
Waffen Shop:
Spoiler anzeigen
Code
class life_weapon_shop {
idd = 38400;
movingEnable = 0;
enableSimulation = 1;
class controlsBackground {
class RscTitleBackground: Life_RscText {
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
idc = -1;
x = 0.1;
y = 0.2;
w = 0.32;
h = (1 / 25);
};
class MainBackground: Life_RscText {
colorBackground[] = {0,0,0,0.7};
idc = -1;
x = 0.1;
y = 0.2 + (11 / 250);
w = 0.32;
h = 0.6 - (22 / 250);
};
class Title: Life_RscTitle {
colorBackground[] = {0,0,0,0};
idc = 38401;
text = "";
x = 0.1;
y = 0.2;
w = 0.32;
h = (1 / 25);
};
class itemInfo: Life_RscStructuredText {
idc = 38404;
text = "";
sizeEx = 0.035;
x = 0.11;
y = 0.68;
w = 0.2;
h = 0.2;
};
class FilterList: Life_RscCombo {
idc = 38402;
onLBSelChanged = "_this call life_fnc_weaponShopFilter";
x = 0.11;
y = 0.64;
w = 0.3;
h = 0.035;
};
};
class controls {
class itemList: Life_RscListBox {
idc = 38403;
onLBSelChanged = "_this call life_fnc_weaponShopSelection";
sizeEx = 0.035;
x = 0.11;
y = 0.25;
w = 0.3;
h = 0.38;
};
class ButtonBuySell: Life_RscButtonMenu {
idc = 38405;
text = "$STR_Global_Buy";
onButtonClick = "[] spawn life_fnc_weaponShopBuySell; true";
x = 0.1;
y = 0.8 - (1 / 25);
w = (6.25 / 40);
h = (1 / 25);
};
class ButtonClose: Life_RscButtonMenu {
idc = -1;
text = "$STR_Global_Close";
onButtonClick = "closeDialog 0;";
x = 0.1 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.8 - (1 / 25);
w = (6.25 / 40);
h = (1 / 25);
};
class ButtonMags: Life_RscButtonMenu {
idc = 38406;
text = "$STR_Global_Mags";
onButtonClick = "_this call life_fnc_weaponShopMags; _this call life_fnc_weaponShopFilter";
x = 0.1;
y = 0.8 + (1 / 250 / (safezoneW / safezoneH));
w = (6.25 / 40);
h = (1 / 25);
};
class ButtonAccs: Life_RscButtonMenu {
idc = 38407;
text = "$STR_Global_Accs";
onButtonClick = "_this call life_fnc_weaponShopAccs; _this call life_fnc_weaponShopFilter";
x = 0.1 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.8 + (1 / 250 / (safezoneW / safezoneH));
w = (6.25 / 40);
h = (1 / 25);
};
};
};
Alles anzeigen
Einfach durch das Ersetzen:
Spoiler anzeigen
Code
class GUI_1000 {
idd = 1000;
name = "GUI_1000";
onLoad = "uiNamespace setVariable ['GUI_1000', _this select 0];";
onUnLoad = "uiNamespace setVariable ['GUI_1000', nil];";
movingEnable = false;
enableSimulation = true;
class controlsBackground {
};
class controls {
class ButtonMenu_1101: RscButtonMenu
{
idc = 1101;
text = "Kaufen";
x = 0.047308 * safezoneW + safezoneX;
y = 0.850863 * safezoneH + safezoneY;
w = 0.143229 * safezoneW;
h = 0.055555 * safezoneH;
ColorBackground[] = {0,0,0,0.627450};
ColorText[] = {1,1,1,1};
font = TahomaB;
colorFocused[] = {0,0,0,1};
colorDisabled[] = {0,0,0,1};
};
class Frame_1102: RscFrame
{
idc = 1102;
x = 0.021788 * safezoneW + safezoneX;
y = 0.073086 * safezoneH + safezoneY;
w = 0.354687 * safezoneW;
h = 0.877777 * safezoneH;
ColorBackground[] = {0,0,0,0};
ColorText[] = {1,1,1,1};
};
class Button_1103: RscButton
{
idc = 1103;
text = "Schließen";
x = 0.221527 * safezoneW + safezoneX;
y = 0.852715 * safezoneH + safezoneY;
w = 0.128125 * safezoneW;
h = 0.051851 * safezoneH;
ColorBackground[] = {0,0,0,0.627450};
ColorText[] = {1,1,1,1};
font = TahomaB;
colorFocused[] = {0,0,0,1};
colorDisabled[] = {0,0,0,1};
};
class Combobox_1105: RscCombo
{
idc = 1105;
x = 0.041579 * safezoneW + safezoneX;
y = 0.802715 * safezoneH + safezoneY;
w = 0.315104 * safezoneW;
h = 0.037037 * safezoneH;
ColorBackground[] = {1,1,1,0};
ColorText[] = {1,1,1,1};
colorSelectBackground[] = {0,0,0,1};
colorSelect[] = {0,0,0,1};
};
};
};
Alles anzeigen
???