Jump to content

MechSlayer

Member
  • Content Count

    90
  • Joined

  • Last visited

  • Medals

Everything posted by MechSlayer

  1. Nope it didn't work This is the image: The images is visible but it's nearly invisible:
  2. class Taximetro { idd = -1; class controls { class taximetro: RscButton { idc = 1600; onMouseButtonClick = "closeDialog 1; createDialog 'interfazTaximetro'; ctrlSetText [1000, '0'];"; text = "Taximetro"; //--- ToDo: Localize; x = 0.040674 * safezoneW + safezoneX; y = 0.90607 * safezoneH + safezoneY; w = 0.0787416 * safezoneW; h = 0.0420073 * safezoneH; }; }; }; class interfazTaximetro { idd = -1; class controlsBackground { class RscPicture_1200: RscPicture { idc = 1200; text = "hud.paa"; x = 0.257213 * safezoneW + safezoneX; y = 0.205949 * safezoneH + safezoneY; w = 0.492135 * safezoneW; h = 0.560097 * safezoneH; }; }; class controls { class Contador: RscText { idc = 1000; x = 0.270337 * safezoneW + safezoneX; y = 0.219951 * safezoneH + safezoneY; w = 0.0524944 * safezoneW; h = 0.0700121 * safezoneH; colorBackground[] = {0,0,0,0.5}; }; class iniciarContador: RscButton { idc = 1600; text = "Iniciar"; //--- ToDo: Localize; onMouseButtonClick = "Contando = true; call Taxi_fnc_contador;"; x = 0.270337 * safezoneW + safezoneX; y = 0.373978 * safezoneH + safezoneY; w = 0.0524944 * safezoneW; h = 0.0700121 * safezoneH; }; class Tarifa1: RscButton { idc = 1601; text = "Tarifa 1"; //--- ToDo: Localize; onMouseButtonClick = "Tarifa1 = true; Tarifa2 = false; Tarifa3 = false;"; x = 0.440944 * safezoneW + safezoneX; y = 0.219951 * safezoneH + safezoneY; w = 0.0524944 * safezoneW; h = 0.0700121 * safezoneH; }; class Tarifa2: RscButton { idc = 1602; text = "Tarifa 2"; //--- ToDo: Localize; onMouseButtonClick = "Tarifa1 = false; Tarifa2 = true; Tarifa3 = false;"; x = 0.440944 * safezoneW + safezoneX; y = 0.331971 * safezoneH + safezoneY; w = 0.0524944 * safezoneW; h = 0.0700121 * safezoneH; }; class Tarifa3: RscButton { idc = 1603; text = "Tarifa 3"; //--- ToDo: Localize; onMouseButtonClick = "Tarifa1 = false; Tarifa2 = false; Tarifa3 = true;"; x = 0.440944 * safezoneW + safezoneX; y = 0.44399 * safezoneH + safezoneY; w = 0.0524944 * safezoneW; h = 0.0700121 * safezoneH; }; class pararContador: RscButton { idc = 1604; text = "Parar"; //--- ToDo: Localize; onMouseButtonClick = "Contando = false;"; x = 0.335955 * safezoneW + safezoneX; y = 0.373978 * safezoneH + safezoneY; w = 0.0524944 * safezoneW; h = 0.0700121 * safezoneH; }; class contadorReiniciar: RscButton { idc = 1605; text = "Reiniciar"; //--- ToDo: Localize; onMouseButtonClick = "Dinero = 0; Inicio = 0; ctrlSetText [1000, '0'];"; x = 0.303146 * safezoneW + safezoneX; y = 0.485998 * safezoneH + safezoneY; w = 0.0524944 * safezoneW; h = 0.0700121 * safezoneH; }; }; };
  3. Where do I put that? Inside the picutre RcsClass ?
  4. Thanks! One last question, how can I change the opacity of a picture?
  5. I mean, for example: I have 4 buttons and an image as background, the 4 buttons must be layer 1 and the image layer 0
  6. Thanks, I made it work with ctrlShow, but I have another question. How can I set layers? For example: The background behind a button
  7. class RscText_1000: RscText { idc = 1000; text = "Paciente:"; //--- ToDo: Localize; x = 0.237519 * safezoneW + safezoneX; y = 0.15 * safezoneH + safezoneY; w = 0.0524963 * safezoneW; h = 0.07 * safezoneH; }; class nombrePaciente: RscText { idc = 1001; text = "hint format['%1', nombre];"; x = 0.289762 * safezoneW + safezoneX; y = 0.171182 * safezoneH + safezoneY; w = 0.104993 * safezoneW; h = 0.028 * safezoneH; }; Hey, how can I make it show the name of the player ? It only shows the code
  8. MechSlayer

    RSC Text show variable

    onLoad works thanks!
  9. Hey i have this hintC action: Sujeto addAction ["Heridas", { "Paciente" hintC [ format [ "Nombre: %1\nCabeza: %2\nCuello: %3\nTorso: %4\nBrazos: %5\nPiernas: %6", nombre, heridaCabeza, heridaCuello, heridaTorso, heridaBrazos, heridaPiernas ]] }]; But when the player activates it all player see it instead of the player who executed it.
  10. MechSlayer

    HintC locally

    Fixed it, now i have another problem. When I execute this from the debug console it works "DNI" hintC [ format ["Nombre: %1", Nombre], format ["ID: %1", ID], format ["Online: %1", Online]]; But when i put it inside a script it won't work. The complete code is Nombre = name player; ID = getPlayerUID player; Online = time; remoteExecCall ["MostrarDNI", cursorTarget, true]; MostrarDNI = { "DNI" hintC [ format ["Nombre: %1", Nombre], format ["ID: %1", ID], format ["Online: %1", Online]]; };
  11. MechSlayer

    Hide buildings using classname

    Nevermind i found it buildings = nearestObjects [pos, ["Classname"], area]; {_x hideObject true;} foreach buildings;
  12. Hey, i want to hide all buildings that have the same classname Example: Instead of using "varName hideObject true" use "classname hideObject true"
×