1. Dashboard
  2. Forum
    1. Unerledigte Themen
  3. Downloads
  4. Galerie
    1. Alben
  5. Toolbox
    1. Passwort Generator
    2. Portchecker
  6. Mitglieder
    1. Mitgliedersuche
    2. Benutzer online
    3. Trophäen
    4. Team
Do: 22 Mai 2025
  • Anmelden oder registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Forum
  • Dateien
  • Seiten
  • Bilder
  • Erweiterte Suche

Schön, dass du den Weg zu NodeZone.net gefunden hast! Aktuell bist du nicht angemeldet und kannst deshalb nur eingeschränkt auf unsere Community zugreifen. Um alle Funktionen freizuschalten, spannende Inhalte zu entdecken und dich aktiv einzubringen, registriere dich jetzt kostenlos oder melde dich mit deinem Account an.

Anmelden oder registrieren
    1. Nodezone.net Community
    2. Forum
    3. Gameserver & Hosting
    4. ArmA Series - ArmA 3 / Reforger
    5. Hilfeforum

    License data recovery

    • Blayfix
    • 19. Februar 2017 um 01:35
    • Geschlossen
    • Erledigt
    • Blayfix
      Frischling
      Reaktionen
      5
      Trophäen
      9
      Beiträge
      18
      • 19. Februar 2017 um 01:35
      • #1

      Hello everyone, so already i am french excuse me for my english.


      So here is how you can see on the gif here, I modify my menu Y in Ipad. So I had to move some part like money, licenses, items in other dialog. So I succeeded for money by creating an .sqf that calls the life_money dialog. But the complication is complicated at the level of licenses and items, so I proceed to the same method but without success. Here are my files, the goal is to move the items from the first page of the Basic Menu Y into sub dialog. Thank you for your help ! Blayfix


      licence.hpp

      Code
      #include "player_sys.sqf"
      
      
      
      
      class Life_licence {
          idd = playersys_DIALOG;
          movingEnable = 1;
          enableSimulation = 1;
      
      
      
      
          class controlsBackground {
              class Life_ipad: Life_RscPicture {
      			text = "textures\menu\ipad_defaut.paa";            
      			idc = -1;
                  x = 0.58775 * safezoneW + safezoneX;
      			y = 0.181095 * safezoneH + safezoneY;
      			w = 0.521338 * safezoneW;
      			h = 0.879737 * safezoneH;
              };
      
      
      
      
              class PlayersName: Life_RscTitle {
                  idc = carry_weight;
                  style = 1;
                  text = "";
      			sizeEx = 0.028;
      			x = 0.847904 * safezoneW + safezoneX;
      			y = 0.249275 * safezoneH + safezoneY;
      			w = 0.0361323 * safezoneW;
      			h = 0.0219934 * safezoneH;
              };
          };
      	class controls {
      		class Licenses_Menu : Life_RscControlsGroup {
                  idc = -1;
                  x = 0.680662 * safezoneW + safezoneX;
      			y = 0.348245 * safezoneH + safezoneY;
      			w = 0.190985 * safezoneW;
      			h = 0.340898 * safezoneH;
      
      
      
      
                  class Controls {
                      class Life_Licenses: Life_RscStructuredText {
                          idc = 2014;
                          sizeEx = 0.020;
                          text = "";
                          x = 0;
                          y = 0;
                          w = 0.27;
                          h = 0.65;
                      };
                  };
              };
      	};
      };
      Alles anzeigen


      licence.sqf

      Code
      #include "..\..\script_macros.hpp"
      /*
          File: fn_p_updateMenu.sqf
          Author: Bryan "Tonic" Boardwine
      
      
      
      
          Description:
          Updates the player menu (Virtual Interaction Menu)
      */
      private["_inv","_lic","_licenses","_near","_near_units","_mstatus","_shrt","_side","_struct"];
      disableSerialization;
      
      
      
      
      createDialog "life_licence";
      
      
      
      
      if (FETCH_CONST(life_adminlevel) < 1) then {
          ctrlShow[2020,false];
          ctrlShow[2021,false];
      };
      
      
      
      
      _side = switch (playerSide) do {case west:{"cop"}; case civilian:{"civ"}; case independent:{"med"};};
      
      
      
      
      _inv = CONTROL(2001,2005);
      _lic = CONTROL(2001,2014);
      _near = CONTROL(2001,2022);
      _near_i = CONTROL(2001,2023);
      _mstatus = CONTROL(2001,2015);
      _struct = "";
      lbClear _inv;
      lbClear _near;
      lbClear _near_i;
      
      
      
      
      //Near players
      _near_units = [];
      { if (player distance _x < 10) then {_near_units pushBack _x};} forEach playableUnits;
      {
          if (!isNull _x && alive _x && player distance _x < 10 && _x != player) then {
              _near lbAdd format["%1 - %2",_x getVariable ["realname",name _x], side _x];
              _near lbSetData [(lbSize _near)-1,str(_x)];
              _near_i lbAdd format["%1 - %2",_x getVariable ["realname",name _x], side _x];
              _near_i lbSetData [(lbSize _near)-1,str(_x)];
          };
      } forEach _near_units;
      
      
      
      
      _mstatus ctrlSetStructuredText parseText format["<img size='1.3' image='icons\ico_bank.paa'/> <t size='0.8px'>$%1</t><br/><img size='1.2' image='icons\ico_money.paa'/> <t size='0.8'>$%2</t>",[BANK] call life_fnc_numberText,[CASH] call life_fnc_numberText];
      ctrlSetText[2009,format["Weight: %1 / %2", life_carryWeight, life_maxWeight]];
      
      
      
      
      {
          if (ITEM_VALUE(configName _x) > 0) then {
              _inv lbAdd format["%2 [x%1]",ITEM_VALUE(configName _x),localize (getText(_x >> "displayName"))];
              _inv lbSetData [(lbSize _inv)-1,configName _x];
              _icon = M_CONFIG(getText,"VirtualItems",configName _x,"icon");
              if (!(_icon isEqualTo "")) then {
                  _inv lbSetPicture [(lbSize _inv)-1,_icon];
              };
          };
      } forEach ("true" configClasses (missionConfigFile >> "VirtualItems"));
      
      
      
      
      {
          _displayName = getText(_x >> "displayName");
      
      
      
      
          if (LICENSE_VALUE(configName _x,_side)) then {
              _struct = _struct + format["%1<br/>",localize _displayName];
          };
      } forEach (format["getText(_x >> 'side') isEqualTo '%1'",_side] configClasses (missionConfigFile >> "Licenses"));
      
      
      
      
      if (_struct isEqualTo "") then {
          _struct = "No Licenses";
      };
      
      
      
      
      _lic ctrlSetStructuredText parseText format["
      <t size='0.8px'>
      %1
      </t>
      ",_struct];
      Alles anzeigen

      Bilder

      • image.gif
        • 4,3 MB
        • 609 × 670
        • 402

    Registrieren oder Einloggen

    Du bist noch kein Mitglied von NodeZone.net? Registriere dich kostenlos und werde Teil einer großartigen Community!

    Registrieren

    Tags

    • Altis 4.4
    • 4.4 r4

    Benutzer online in diesem Thema

    • 1 Besucher

    Wichtige Links & Informationen

    Server & Hosting-Ressourcen

      Server Administration & Hosting Basics

      Windows Server Support & Guides

      Linux Server Configuration & Help

      Setting up TeamSpeak 3 & VoIP Servers

      Domains & Web Hosting for Beginners & Professionals

      Cloud Hosting, Docker & Kubernetes Tutorials

    Gameserver & Modding-Ressourcen

      ArmA 3 Tutorials & Script Collection

      Renting & Operating Gameservers

      DayZ Server Management & Help

      FiveM (GTA V) Server & Script Development

      Rust Server Modding & Administration

      Setting up & Optimizing ARK Survival Servers

    NodeZone.net – Deine Community für Gameserver, Server-Hosting & Modding

      NodeZone.net ist dein Forum für Gameserver-Hosting, Rootserver, vServer, Webhosting und Modding. Seit 2015 bietet unsere Community eine zentrale Anlaufstelle für Server-Admins, Gamer und Technikbegeisterte, die sich über Server-Management, Hosting-Lösungen und Spielemodding austauschen möchten.


      Ob Anleitungen für eigene Gameserver, Hilfe bei Root- und vServer-Konfigurationen oder Tipps zu Modding & Scripting – bei uns findest du fundiertes Wissen und praxisnahe Tutorials. Mit einer stetig wachsenden Community findest du hier Antworten auf deine Fragen, Projektpartner und Gleichgesinnte für deine Gaming- und Serverprojekte. Schließe dich NodeZone.net an und werde Teil einer aktiven Community rund um Server-Hosting, Gameserver-Management und Modding-Ressourcen.

    Wer jetzt nicht teilt ist selber Schuld:
    1. Nutzungsbestimmungen
    2. Datenschutzerklärung
    3. Impressum
    4. Urheberrechts- oder Lizenzverstoß melden
  • Trimax Design coded & layout by Gino Zantarelli 2023-2025©
    Community-Software: WoltLab Suite™