Beiträge von HelperLee
-
-
Hey Jan oder @Jammedlp,
Wir sind eine kleine Community die noch Teammitglieder sucht und würden Herzlich bei uns Willkommen heiße.
Wir heißen Secondlife und werden bald einen Tanoa Life Modded Server aufmachen.
Wir müssen ihn noch per Scripts und so weiter Personalisieren.Unsere IP: ts.seconlife-community.net
-
Du musst bilder haben die so ne Größe haben:
2x2 4x4 16x16 32x32 64x64 128x128 256x256 512x512 1024x1024 2048x2048 -
Ja es liegt etwas in der Luft Screenshot alles was ihr geschrieben habt !!!
-
Was ist passiert
-
-
Ich kann dir helfen
-
Habe mal das zu ner paa gemacht
Hier das Ergebnis -
habe pn und Brizi mach ich mal und schicke dann ergebnis hier Rein !"
-
Habe es beides Gefixt kannst du hier gucken ?
-
ALLE FINDEN ES GEIL _:D
KOMMST DU AUF UNSEREN TS ? -
-
Habe sie grade bischen bearbeitet.
Spoiler anzeigen
/////////////////////////////////////////////////////////////////
/////////// This File was Edited by GUI D3V by Shinji ///////////
/////////////////////////////////////////////////////////////////
class playerSettings {
idd = playersys_DIALOG;
name = "playerSettings";
movingenable = 1;
enablesimulation = 1;
class controlsBackground
{
class life_RscPicture0 : life_RscPicture
{
text = "textures\zmenu.png";
x = 0.124479166666667 * safezoneW + safezoneX;
y = 0.0206489675516224 * safezoneH + safezoneY;
w = 0.728645833333333 * safezoneW;
h = 1.2133726647001 * safezoneH;
idc = 1001;
};
class Title : Life_RscTitle
{
colorbackground[] = {0, 0, 0, 0};
idc = -1;
text = "$STR_PM_Title";
x = 0.124479166666667 * safezoneW + safezoneX;
y = 0.127236971484759 * safezoneH + safezoneY;
w = 0.729166666666667 * safezoneW;
h = (1 / 25);
};
class moneyStatusInfo : Life_RscStructuredText
{
idc = 2015;
sizeex = 0.020;
x = 0.682604166666667 * safezoneW + safezoneX;
y = 0.629203539823009 * safezoneH + safezoneY;
w = 0.147083333333333 * safezoneW;
h = 0.125958702064897 * safezoneH;
};
class PlayersName : Title
{
idc = 5386;
style = 1;
text = "";
};
};
class controls
{
class itemList : Life_RscListBox
{
idc = 6158;
sizeex = 0.030;
x = 0.510416666666667 * safezoneW + safezoneX;
y = 0.307767944936087 * safezoneH + safezoneY;
h = 0.27826941986234 * safezoneH;
w = 0.146875 * safezoneW;
};
class moneyEdit : Life_RscEdit
{
idc = 2018;
text = "1";
sizeex = 0.030;
x = 0.6828125 * safezoneW + safezoneX;
y = 0.759095378564405 * safezoneH + safezoneY;
w = 0.146875 * safezoneW;
h = 0.0363815142576204 * safezoneH;
};
class NearPlayers : Life_RscCombo
{
idc = 2022;
x = 0.683541666666667 * safezoneW + safezoneX;
y = 0.804149459193707 * safezoneH + safezoneY;
w = 0.146145833333333 * safezoneW;
h = 0.0336086529006884 * safezoneH;
};
class moneyDrop : Life_RscButtonMenu
{
idc = 2001;
text = "$STR_Global_Give";
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};
onbuttonclick = "[] call life_fnc_giveMoney";
sizeex = 0.025;
x = 0.720833333333333 * safezoneW + safezoneX;
y = 0.843657817109145 * safezoneH + safezoneY;
w = 0.0734375 * safezoneW;
h = 0.0276420845624385 * safezoneH;
};
class itemEdit : Life_RscEdit
{
idc = 5100;
text = "1";
sizeex = 0.030;
x = 0.510625 * safezoneW + safezoneX;
y = 0.592920353982301 * safezoneH + safezoneY;
w = 0.146145833333333 * safezoneW;
h = 0.0342969518190762 * safezoneH;
};
class iNearPlayers : Life_RscCombo
{
idc = 2023;
x = 0.509895833333333 * safezoneW + safezoneX;
y = 0.634218289085546 * safezoneH + safezoneY;
w = 0.147916666666667 * safezoneW;
h = 0.0334316617502458 * safezoneH;
};
class DropButton : Life_RscButtonMenu
{
idc = 2002;
text = "";
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};
onbuttonclick = "[] call life_fnc_giveItem;";
x = 0.561875 * safezoneW + safezoneX;
y = 0.673451327433628 * safezoneH + safezoneY;
w = 0.0433333333333334 * safezoneW;
h = 0.0295968534906589 * safezoneH;
colorbackgroundfocused[] = {1,1,1,0};
colorbackground2[] = {1,1,1,0};
color[] = {1,1,1,0};
};
class UseButton : Life_RscButtonMenu
{
text = "";
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};
onbuttonclick = "[] call life_fnc_useItem;";
x = 0.614791666666667 * safezoneW + safezoneX;
y = 0.673451327433628 * safezoneH + safezoneY;
w = 0.0414583333333333 * safezoneW;
h = 0.0295968534906589 * safezoneH;
idc = 1000;
colorbackgroundfocused[] = {1,1,1,0};
colorbackground2[] = {1,1,1,0};
color[] = {1,1,1,0};
colorfocused[] = {1,1,1,0};
color2[] = {1,1,1,0};
colortext[] = {1,1,1,0};
};
class RemoveButton : Life_RscButtonMenu
{
text = "";
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};
onbuttonclick = "[] call life_fnc_removeItem;";
x = 0.509895833333333 * safezoneW + safezoneX;
y = 0.674223205506391 * safezoneH + safezoneY;
w = 0.0427083333333333 * safezoneW;
h = 0.0295968534906589 * safezoneH;
idc = 1000;
colorbackgroundfocused[] = {1,1,1,0};
colorbackground2[] = {1,1,1,0};
colorfocused[] = {1,1,1,0};
color[] = {1,1,1,0};
color2[] = {1,1,1,0};
colortext[] = {1,1,1,0};
};
class ButtonClose : Life_RscButtonMenu
{
text = "$STR_Global_Close";
onbuttonclick = "closeDialog 0;";
x = 0.827083333333333 * safezoneW + safezoneX;
y = 0.174945919370698 * safezoneH + safezoneY;
w = 0.0229166666666667 * safezoneW;
h = (1 / 25);
idc = 1000;
};
class ButtonSettings : Life_RscButtonMenu
{
text = "$STR_Global_Settings";
onbuttonclick = "[] call life_fnc_settingsMenu;";
x = 0.309864898989899 * safezoneW + safezoneX;
y = 0.341120943952803 * safezoneH + safezoneY;
w = (6.25 / 40);
h = (1 / 25);
idc = 1000;
colorbackground[] = {0.498039215686275,1,0,1};
};
class ButtonMyGang : Life_RscButtonMenu
{
idc = 2011;
text = "$STR_PM_MyGang";
onbuttonclick = "if (isNil ""life_action_gangInUse"") then {if (isNil {(group player) getVariable ""gang_owner""}) then {createDialog ""Life_Create_Gang_Diag"";} else {[] spawn life_fnc_gangMenu;};};";
x = 0.1390625 * safezoneW + safezoneX;
y = 0.341120943952803 * safezoneH + safezoneY;
w = (6.25 / 40);
h = (1 / 25);
colorbackground[] = {0.498039215686275,1,0,1};
};
class Licenses_Menu : Life_RscControlsGroup
{
w = 0.146979166666667 * safezoneW;
h = 0.278171091445428 * safezoneH;
x = 0.683229166666667 * safezoneW + safezoneX;
y = 0.306882989183874 * safezoneH + safezoneY;
idc = 1000;
class Controls {
class Life_Licenses: Life_RscStructuredText
{
idc = 2014;
sizeex = 0.020;
text = "";
x = 0;
y = 0;
w = 0.27;
h = 0.65;
};
};
};
class ButtonGangList : Life_RscButtonMenu
{
idc = 2012;
text = "$STR_PM_WantedList";
onbuttonclick = "[] call life_fnc_wantedMenu";
x = 0.309864898989899 * safezoneW + safezoneX;
y = 0.39913470993117 * safezoneH + safezoneY;
w = (6.25 / 40);
h = (1 / 25);
colorbackground[] = {0.498039215686275,1,0,1};
};
class ButtonKeys : Life_RscButtonMenu
{
idc = 2013;
text = "$STR_PM_KeyChain";
onbuttonclick = "createDialog ""Life_key_management"";";
x = 0.1390625 * safezoneW + safezoneX;
y = 0.285290068829892 * safezoneH + safezoneY;
w = (6.25 / 40);
h = (1 / 25);
colorbackground[] = {0.498039215686275,1,0,1};
colorbackground2[] = {0.486274509803922,0.988235294117647,0,1};
};
class ButtonCell : Life_RscButtonMenu
{
idc = 2014;
text = "$STR_PM_CellPhone";
onbuttonclick = "createDialog ""Life_cell_phone"";";
x = 0.1390625 * safezoneW + safezoneX;
y = 0.747295968534907 * safezoneH + safezoneY;
w = 0.053125 * safezoneW;
h = 0.0904621435594887 * safezoneH;
colorbackground[] = {1,1,1,0};
colorbackgroundfocused[] = {1,1,1,0};
colorbackground2[] = {1,1,1,0};
color[] = {1,1,1,0};
colorfocused[] = {1,1,1,0};
color2[] = {1,1,1,0};
colortext[] = {1,1,1,0};
};
class ButtonAdminMenu : Life_RscButtonMenu
{
idc = 2021;
text = "$STR_PM_AdminMenu";
onbuttonclick = "closeDialog 0; createDialog ""life_admin_menu"";";
x = 0.1390625 * safezoneW + safezoneX;
y = 0.39913470993117 * safezoneH + safezoneY;
w = (6.25 / 40);
h = (1 / 25);
colorbackground[] = {0.498039215686275,1,0,1};
};
class ButtonSyncData : Life_RscButtonMenu
{
text = "$STR_PM_SyncData";
onbuttonclick = "[] call SOCK_fnc_syncData;";
x = 0.309864898989899 * safezoneW + safezoneX;
y = 0.285290068829892 * safezoneH + safezoneY;
w = (6.25 / 40);
h = (1 / 25);
idc = 1000;
colorbackground[] = {0.498039215686275,1,0,1};
};
};
};
/////////////////////////////////////////////////////////////////
////////////////////////// FILE END /////////////////////////////
/////////////////////////////////////////////////////////////////
-
Hier sieht man der Hintergrund ist richtig Transparent
Kann mir jemand helfen benutze den GUI DEV -
Spoiler anzeigen
- class PlayersName : Title
- {
- idc = 5386;
- style = 1;
- text = "";
- };
Mach da mal
Life_RscTitle hin
das funkt ab und zu bei mir auch nicht so ansonsten finde ich im Schnelldurchlauf keinen Fehler.
Also so ?
Spoiler anzeigen
- class PlayersName : Life_RscTitle
- {
- idc = 5386;
- style = 1;
- text = "";
- };
-
Ich kriege aber leider immer diesen Fehler in der RPT Log:
Code16:07:55 Warning Message: File mpmissions\SecondLife_Life.Tanoa\dialog\player_inv.hpp, line 129: Config: '.' encountered instead of ',' 16:07:55 Warning Message: Config : some input after EndOfFile. 16:07:55 Class Life_RscTitle destroyed with lock count 1 16:07:55 Class life_RscPicture destroyed with lock count 1 16:07:55 Class Life_RscStructuredText destroyed with lock count 1 16:07:55 Class Life_RscButtonMenu destroyed with lock count 4 16:07:55 Class Life_RscListBox destroyed with lock count 1 16:07:55 Class Life_RscEdit destroyed with lock count 2 16:07:55 Class Life_RscCombo destroyed with lock count 2
Anhänge sind einmal der RPT Log und der Dialog
ps. Dialog zu txt geändert damit man das hochladen kann ! -
Das ist meine Playerinv.hpp sie wurde bearbeitet von GUI D3V. Das ist ein Programm von Shinji
C
Alles anzeigen///////////////////////////////////////////////////////////////// /////////// This File was Edited by GUI D3V by Shinji /////////// ///////////////////////////////////////////////////////////////// #include "player_sys.sqf" class playerSettings { idd = playersys_DIALOG; name = "playerSettings"; movingenable = 1; enablesimulation = 1; class controlsBackground { class life_RscPicture0 : life_RscPicture { text = "textures\zmenu.paa"; x = 0.124479166666667 * safezoneW + safezoneX; y = 0.0206489675516224 * safezoneH + safezoneY; w = 0.728645833333333 * safezoneW; h = 1.2133726647001 * safezoneH; idc = 1001; }; class Title : Life_RscTitle { colorbackground[] = {0, 0, 0, 0}; idc = -1; text = "$STR_PM_Title"; x = 0.124479166666667 * safezoneW + safezoneX; y = 0.127236971484759 * safezoneH + safezoneY; w = 0.729166666666667 * safezoneW; h = (1 / 25); }; class moneyStatusInfo : Life_RscStructuredText { idc = 2015; sizeex = 0.020; x = 0.682604166666667 * safezoneW + safezoneX; y = 0.629203539823009 * safezoneH + safezoneY; w = 0.147083333333333 * safezoneW; h = 0.125958702064897 * safezoneH; }; class PlayersName : Title { idc = 5386; style = 1; text = ""; }; }; class controls { class itemList : Life_RscListBox { idc = 6158; sizeex = 0.030; x = 0.510416666666667 * safezoneW + safezoneX; y = 0.307767944936087 * safezoneH + safezoneY; h = 0.27826941986234 * safezoneH; w = 0.146875 * safezoneW; }; class moneyEdit : Life_RscEdit { idc = 2018; text = "1"; sizeex = 0.030; x = 0.6828125 * safezoneW + safezoneX; y = 0.759095378564405 * safezoneH + safezoneY; w = 0.146875 * safezoneW; h = 0.0363815142576204 * safezoneH; }; class NearPlayers : Life_RscCombo { idc = 2022; x = 0.683541666666667 * safezoneW + safezoneX; y = 0.804149459193707 * safezoneH + safezoneY; w = 0.146145833333333 * safezoneW; h = 0.0336086529006884 * safezoneH; }; class moneyDrop : Life_RscButtonMenu { idc = 2001; text = "$STR_Global_Give"; 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}; onbuttonclick = "[] call life_fnc_giveMoney"; sizeex = 0.025; x = 0.720833333333333 * safezoneW + safezoneX; y = 0.843657817109145 * safezoneH + safezoneY; w = 0.0734375 * safezoneW; h = 0.0276420845624385 * safezoneH; }; class itemEdit : Life_RscEdit { idc = 5100; text = "1"; sizeex = 0.030; x = 0.510625 * safezoneW + safezoneX; y = 0.592920353982301 * safezoneH + safezoneY; w = 0.146145833333333 * safezoneW; h = 0.0342969518190762 * safezoneH; }; class iNearPlayers : Life_RscCombo { idc = 2023; x = 0.509895833333333 * safezoneW + safezoneX; y = 0.634218289085546 * safezoneH + safezoneY; w = 0.147916666666667 * safezoneW; h = 0.0334316617502458 * safezoneH; }; class DropButton : Life_RscButtonMenu { idc = 2002; text = "$STR_Global_Give"; 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}; onbuttonclick = "[] call life_fnc_giveItem;"; x = 0.561875 * safezoneW + safezoneX; y = 0.673451327433628 * safezoneH + safezoneY; w = 0.0433333333333334 * safezoneW; h = 0.0295968534906589 * safezoneH; }; class UseButton : Life_RscButtonMenu { text = "$STR_Global_Use"; 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}; onbuttonclick = "[] call life_fnc_useItem;"; x = 0.6153125 * safezoneW + safezoneX; y = 0.674434611602753 * safezoneH + safezoneY; w = 0.0414583333333333 * safezoneW; h = 0.0295968534906589 * safezoneH; idc = 1000; }; class RemoveButton : Life_RscButtonMenu { text = "$STR_Global_Remove"; 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}; onbuttonclick = "[] call life_fnc_removeItem;"; x = 0.509895833333333 * safezoneW + safezoneX; y = 0.674223205506391 * safezoneH + safezoneY; w = 0.0427083333333333 * safezoneW; h = 0.0295968534906589 * safezoneH; idc = 1000; }; class ButtonClose : Life_RscButtonMenu { text = "$STR_Global_Close"; onbuttonclick = "closeDialog 0;"; x = 0.827083333333333 * safezoneW + safezoneX; y = 0.174945919370698 * safezoneH + safezoneY; w = 0.0229166666666667 * safezoneW; h = (1 / 25); idc = 1000; }; class ButtonSettings : Life_RscButtonMenu { text = "$STR_Global_Settings"; onbuttonclick = "[] call life_fnc_settingsMenu;"; x = 0.309864898989899 * safezoneW + safezoneX; y = 0.341120943952803 * safezoneH + safezoneY; w = (6.25 / 40); h = (1 / 25); idc = 1000; colorbackground[] = {0.498039215686275,1,0,1}; }; class ButtonMyGang : Life_RscButtonMenu { idc = 2011; text = "$STR_PM_MyGang"; onbuttonclick = "if (isNil ""life_action_gangInUse"") then {if (isNil {(group player) getVariable ""gang_owner""}) then {createDialog ""Life_Create_Gang_Diag"";} else {[] spawn life_fnc_gangMenu;};};"; x = 0.1390625 * safezoneW + safezoneX; y = 0.341120943952803 * safezoneH + safezoneY; w = (6.25 / 40); h = (1 / 25); colorbackground[] = {0.498039215686275,1,0,1}; }; class Licenses_Menu : Life_RscControlsGroup { w = 0.146979166666667 * safezoneW; h = 0.278171091445428 * safezoneH; x = 0.683229166666667 * safezoneW + safezoneX; y = 0.306882989183874 * safezoneH + safezoneY; idc = 1000; class Controls { class Life_Licenses: Life_RscStructuredText { idc = 2014; sizeex = 0.020; text = ""; x = 0; y = 0; w = 0.27; h = 0.65; }; }; }; class ButtonGangList : Life_RscButtonMenu { idc = 2012; text = "$STR_PM_WantedList"; onbuttonclick = "[] call life_fnc_wantedMenu"; x = 0.309864898989899 * safezoneW + safezoneX; y = 0.39913470993117 * safezoneH + safezoneY; w = (6.25 / 40); h = (1 / 25); colorbackground[] = {0.498039215686275,1,0,1}; }; class ButtonKeys : Life_RscButtonMenu { idc = 2013; text = "$STR_PM_KeyChain"; onbuttonclick = "createDialog ""Life_key_management"";"; x = 0.1390625 * safezoneW + safezoneX; y = 0.285290068829892 * safezoneH + safezoneY; w = (6.25 / 40); h = (1 / 25); colorbackground[] = {0.498039215686275,1,0,1}; colorbackground2[] = {0.486274509803922,0.988235294117647,0,1}; }; class ButtonCell : Life_RscButtonMenu { idc = 2014; text = "$STR_PM_CellPhone"; onbuttonclick = "createDialog ""Life_cell_phone"";"; x = 0.1390625 * safezoneW + safezoneX; y = 0.747295968534907 * safezoneH + safezoneY; w = 0.053125 * safezoneW; h = 0.0904621435594887 * safezoneH; }; class ButtonAdminMenu : Life_RscButtonMenu { idc = 2021; text = "$STR_PM_AdminMenu"; onbuttonclick = "closeDialog 0; createDialog ""life_admin_menu"";"; x = 0.1390625 * safezoneW + safezoneX; y = 0.39913470993117 * safezoneH + safezoneY; w = (6.25 / 40); h = (1 / 25); colorbackground[] = {0.498039215686275,1,0,1}; }; class ButtonSyncData : Life_RscButtonMenu { text = "$STR_PM_SyncData"; onbuttonclick = "[] call SOCK_fnc_syncData;"; x = 0.309864898989899 * safezoneW + safezoneX; y = 0.285290068829892 * safezoneH + safezoneY; w = (6.25 / 40); h = (1 / 25); idc = 1000; colorbackground[] = {0.498039215686275,1,0,1}; }; }; }; ///////////////////////////////////////////////////////////////// ////////////////////////// FILE END ///////////////////////////// /////////////////////////////////////////////////////////////////
-
Das ist meine Hud im Dialog ist da nen Fehler drinne weil sie ingame nicht angezeigt wird
Code
Alles anzeigen#define ST_CENTER 0x02 /* Author: Daniel Stuart File: hud_stats.hpp */ class playerHUD { idd=-1; movingEnable=0; fadein=0; duration = 10e10; fadeout=0; name="playerHUD"; onLoad="uiNamespace setVariable ['playerHUD',_this select 0]"; objects[]={}; class controlsBackground { class fondIcon : life_RscPicture { idc = -1; text = "textures\UI.paa"; x = safeZoneX+safeZoneW-0.2; y = safeZoneY+safeZoneH-0.58; w = 0.21; h = 0.31; }; }; class controls { class foodtext { type=0; idc=23500; style=0; x=-1; y=-1; w=0.3; h=0.05; sizeEx=0.03; size=1; font="PuristaSemibold"; colorBackground[]={0,0,0,0}; colorText[] = { 1 , 1 , 1 , 1 }; shadow=1; text=""; }; class watertext { type=0; idc=23510; style=0; x=-1; y=-1; w=0.3; h=0.05; sizeEx=0.03; size=1; font="PuristaSemibold"; colorBackground[]={0,0,0,0}; colorText[] = { 1 , 1 , 1 , 1 }; shadow=1; text=""; }; class healthtext { type=0; idc=23515; style=0; x=-1; y=-1; w=0.3; h=0.05; sizeEx=0.03; size=1; font="PuristaSemibold"; colorBackground[]={0,0,0,0}; colorText[] = { 1 , 1 , 1 , 1 }; shadow=1; text=""; }; class weighttext { type=0; idc=23520; style=0; x=-1; y=-1; w=0.3; h=0.05; sizeEx=0.03; size=1; font="PuristaSemibold"; colorBackground[]={0,0,0,0}; colorText[] = { 1 , 1 , 1 , 1 }; shadow=1; text=""; }; class moneytext { type=0; idc=23525; style=0; x=-1; y=-1; w=0.3; h=0.05; sizeEx=0.03; size=1; font="PuristaSemibold"; colorBackground[]={0,0,0,0}; colorText[] = { 1 , 1 , 1 , 1 }; shadow=1; text=""; }; class watermark: Life_RscPicture { idc = 1203; text = "textures\logotransparent.png"; x = 0.0101562 * safezoneW + safezoneX; y = 0.885 * safezoneH + safezoneY; w = 0.0721875 * safezoneW; h = 0.099 * safezoneH; }; }; };
-
Und das ist Irgendwo rausgefunden
Von einer Hilfe die br1zey beantwortet hat.----------------------------------------------------------ZITAT-----------------------------------------------------------------------------
ja Ersetzt den Inhalt der
fn_hudUpdate.sqf mit
Code
Alles anzeigen#include "..\..\script_macros.hpp" /* File: fn_hudUpdate.sqf Author: Daniel Stuart Description: Updates the HUD when it needs to. */ disableSerialization; if (isNull LIFEdisplay) then {[] call life_fnc_hudSetup;}; LIFEctrl(2200) progressSetPosition (life_hunger / 100); LIFEctrl(2201) progressSetPosition (1 - (damage player)); LIFEctrl(2202) progressSetPosition (life_thirst / 100); _health = "Gesund"; if((player getVariable "ACE_medical_pain") > 0) then { _health = "Schmerzen"; }; if(player getVariable "ACE_medical_isBleeding") then { _health = "Blutet"; }; LIFEctrl(1201) ctrlsetText _health;
und der
fn_hudSetup.sqfCode
Alles anzeigen#include "..\..\script_macros.hpp" /* File: fn_hudSetup.sqf Author: Bryan "Tonic" Boardwine Description: Setups the hud for the player? */ disableSerialization; 2 cutRsc ["playerHUD", "PLAIN"]; [] call life_fnc_hudUpdate; [] spawn { while{true}do{ [] call life_fnc_hudUpdate; sleep 5; }; };
----------------------------------------------------------ZITAT--ENDE---------------------------------------------------------------------
Hoffe jemand weis wie ich das zusammenschreibe
MFG
Der Ahnungslose
-
Hier geht es weiter
Code
Alles anzeigenif (_damage < 100) then { _healthtext = parseText format["Very Healthy"]; } else { if (_damage < 85) then { _healthtext = parseText format["A few scratches"]; } else { if (_damage < 70) then { _healthtext = parseText format["Slightly injured"]; } else { if (_damage < 60) then { _healthtext = parseText format["Not feeling well"]; } else { if (_damage < 50 ) then { _healthtext = parseText format["Starting to feel pain"]; } else { if (_damage < 40) then { _healthtext = parseText format["I feel pain"]; } else { if (_damage < 30) then { _healthtext = parseText format["Something must be broken"]; } else { if (_damage < 20) then { _healthtext = parseText format["Horribly injured"]; } else { if (_damage < 10) then { _healthtext = parseText format["Extremely injured"]; } else { if (_damage == 0) then { _healthtext = parseText format["Dead</t>"]; };};};};};};};};};}; if (_hunger > 90) then { _hungertext = parseText format["I'm not hungry"]; } else { if (_hunger > 80) then { _hungertext = parseText format["Not hungry at all"]; } else { if (_hunger > 70) then { _hungertext = parseText format["Could use some crackers"]; } else { if (_hunger > 60) then { _hungertext = parseText format["Might need something soon"]; } else { if (_hunger > 50) then { _hungertext = parseText format["Stomach is feeling empty"]; } else { if (_hunger > 40) then { _hungertext = parseText format["I should eat soon"]; } else { if (_hunger > 30) then { _hungertext = parseText format["My stomach is grumbling"]; } else { if (_hunger > 20) then { _hungertext = parseText format["I need to eat now"]; } else { if (_hunger > 10) then { _hungertext = parseText format["Starvation is kicking in"]; } else { if (_hunger == 0) then { _hungertext = parseText format["Dead</t>"]; };};};};};};};};};}; if (_thirst > 80) then { _thirsttext = parseText format["Not thirsty"]; } else { if (_thirst > 70) then { _thirsttext = parseText format["Could use a glass of water"]; } else { if (_thirst > 60) then { _thirsttext = parseText format["Should drink something soon"]; } else { if (_thirst > 50) then { _thirsttext = parseText format["Throat is a little dry"]; } else { if (_thirst > 40) then { _thirsttext = parseText format["I should drink soon"]; } else { if (_thirst > 30) then { _thirsttext = parseText format["My throat is dry"]; } else { if (_thirst > 20) then { _thirsttext = parseText format["I should drink now"]; } else { if (_thirst > 10) then { _thirsttext = parseText format["Dehydration Feels Horrible"]; } else { if (_thirst == 0) then { _thirsttext = parseText format["DEAD</t>"]; };};};};};};};};}; _healthidc ctrlSetStructuredText (parseText format ["<t font='TahomaB' size='0.7' color='%3'>%2%1</t>","%",_damage,_colourDamage]); _foodidc ctrlSetStructuredText (parseText format ["<t font='TahomaB' size='0.7' color='%3'>%2%1</t>","%",_hunger,_colourHunger]); _thirstidc ctrlSetStructuredText (parseText format ["<t font='TahomaB' size='0.7' color='%3'>%2%1</t>","%",_thirst,_colourThirst]); ////^^^^^^^^^^^ HAS EXACT VALUES E.G. HUNGER 100% | THIRST 100% | HEALTH 100% //// //// COMMENT ONE OF THE TWO OUT AS IF YOU DONT, IT WONT WORK ---- REFER TO THE VARIABLES AT THE TOP, THE ONE YOU COMMENTED OUT CORROSPONDS TO THE ONE YOU SHOULD USE NOW!!!!!!!! //// //// THIS ONE BELOW HAS TEXT E.G. HEALTH: SERIOUSLY INJURED | THIRST: NOT THIRSTY | HUNGER: NOT HUNGRY _healthidc ctrlSetStructuredText (parseText format ["<t font='TahomaB' size='0.7' color='%2'>%1</t>",_healthtext,_colourDamage]); _foodidc ctrlSetStructuredText (parseText format ["<t font='TahomaB' size='0.7' color='%2'>%1</t>",_hungertext,_colourHunger]); _thirstidc ctrlSetStructuredText (parseText format ["<t font='TahomaB' size='0.7' color='%2'>%1</t>",_thirsttext,_colourThirst]); //DONT COMMENT THE BELLOW OUT _cashidc ctrlSetStructuredText (parseText format ["$%1",_cash]); _bankidc ctrlSetStructuredText (parseText format ["$%1",_bank]); _playeridc ctrlSetStructuredText (parseText format ["%1",_players]); _cashtitle ctrlSetStructuredText (parseText format ["<t font='TahomaB' size='0.5'>Cash</t>"]); _banktitle ctrlSetStructuredText (parseText format ["<t font='TahomaB' size='0.5'>Bank</t>"]); _playertitle ctrlSetStructuredText (parseText format ["<t font='TahomaB' size='0.5'>Players</t>"]);