- Offizieller Beitrag
Da Ich kaum noch Zeit finde unsere Native-Gamer Missionsdatei weiter zu entwickeln werde ich nun nach und nach einige Inhalte darauf samt Tutorial veröfentlichen.
Hier bekommt Ihr unser Spawnmenü samt Hintergrundbild, eine Vorschau findet Ihr am Ende des Tutorials.
Wie immer untersage ich die Verbreitung des von mir verfassten Tutorials UND DESSEN INHALT (!!!) in anderen Foren ohne vorher mein Einverständnis dazu einzuholen.
Schritt 1:
Öffnet eure common.hpp und fügt dort folgendes ein:
Code: common.hpp
class Life_RscButtonNativeGamer
{
access = 0;
type = 1;
text = "";
colorText[] = {0,0,0,0};
colorDisabled[] = {0,0,0,1};
colorBackground[] = {0,0,0,0};
colorBackgroundDisabled[] = {0,0,0,0};
colorBackgroundActive[] = {0,0,0,0};
colorFocused[] = {0,0,0,0};
colorShadow[] = {0,0,0,0};
colorBorder[] = {0,0,0,1};
soundEnter[] = {"",0.09,1};
soundPush[] = {"",0.09,1};
soundClick[] = {"",0.09,1};
soundEscape[] =
{"",0.09,1};
style = 2;
x = 0;
y = 0;
w = 0.095589;
h = 0.039216;
shadow = 2;
font = "EtelkaNarrowMediumPro";
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
offsetX = 0.003;
offsetY = 0.003;
offsetPressedX = 0.002;
offsetPressedY = 0.002;
borderSize = 0;
};
Alles anzeigen
Schritt 2:
Ersetzt den Inhalt eurer spawnSelection.hpp mit folgendem:
Code: spawnSelection.hpp
class life_spawn_selection
{
idd = 38500;
movingEnabled = false;
enableSimulation = true;
class controlsBackground
{
class NativeGamerBackGround : Life_RscPicture
{
idc = -1;
text = "images\taucher.jpg";
x = 0.0 * safezoneW + safezoneX;
y = 0.0 * safezoneH + safezoneY;
w = 1.0 * safezoneW;
h = 1.0 * safezoneH;
};
class NativeGamerSpawnmenu : life_RscPicture
{
idc = -1;
text = "images\nativegamerspawn.paa";
x = 0;
y = 0;
w = 1;
h = 1;
};
class Title : Life_RscTitle
{
colorBackground[] = {0,0,0,0};
idc = -1;
text = "$STR_Spawn_Title";
x = 0.1; y = 0.14;
w = 0.92; h = (1 / 25);
};
class SpawnPointTitle : Title
{
idc = 38501;
style = 1;
text = "";
x = 0.3625;
y = 0.10;
w = 0.55;
h = 0.04;
};
class MapView : Life_RscMapControl
{
idc = 38502;
x = 0.373;
y = 0.16;
w = 0.55;
h = 0.62;
maxSatelliteAlpha = 0.75;//0.75;
alphaFadeStartScale = 1.15;//0.15;
alphaFadeEndScale = 1.29;//0.29;
};
};
class controls
{
class SpawnPointList: Life_RscListNBox
{
idc = 38510;
text = "";
sizeEx = 0.041;
coloumns[] = {0,0,0.9};
drawSideArrows = false;
idcLeft = -1;
idcRight = -1;
rowHeight = 0.050;
x = 0.075; y = 0.22;
w = 0.2625;
h = 0.7;
onLBSelChanged = "_this call life_fnc_spawnPointSelected;";
};
class spawnButton : Life_RscButtonNativeGamer
{
idc = -1;
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])", 0.5};
text = "$STR_Spawn_Spawn";
onButtonClick = "[] call life_fnc_spawnConfirm";
x = 0.509375 * safezoneW + safezoneX;
y = 0.691667 * safezoneH + safezoneY;
w = 0.0777083 * safezoneW;
h = 0.042037 * safezoneH;
};
};
};
Alles anzeigen
Schritt 3:
Entpackt nun den ordner images aus dem Dateianhang in das Hauptverzeichnis eurer Missionsdatei.
Fertig!
Bild ohne Logo: ownCloud