Szerző Téma: Formázás  (Megtekintve 726 alkalommal)

Formázás
« Dátum: 2012. Október 07. - 19:09:07 »
0 Show voters
Csá újabb kérdéssel állok elõ az lenne a kérdésem hogy a trucking módnál a missiontext-es munkákat hogyan lehetne át formatálni?
Ilyen nagy szöveg kialakitásra gondolok ott alúl ahol mutatja a küldetésed
http://www.youtube.com/watch?v=fhmxKvokrRE

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
Formázás
« Válasz #1 Dátum: 2012. Október 07. - 19:42:12 »
0 Show voters
Van a módban egy sor ahol lehet formázni a textdrawot és ott kell állítani a textdraw formáját õgy tudom az OnGameModeInit alatt van vagy az OnPlayerSpawn.

Formázás
« Válasz #2 Dátum: 2012. Október 07. - 21:25:30 »
0 Show voters
public OnPlayerSpawn(playerid)
{
new missiontext[200];

 
Erre gondoltál?
De melyik az a szám ami át alakítja?

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
Formázás
« Válasz #3 Dátum: 2012. Október 07. - 21:52:47 »
0 Show voters
Ez nem az. Ez csak a string változó csak más néven, ez formáza az üzenetet.

Formázás
« Válasz #4 Dátum: 2012. Október 07. - 21:56:20 »
0 Show voters
// MissionText TextDraw setup
APlayerData[playerid][MissionText] = TextDrawCreate(380.0, 550.0, \" \"); // Setup the missiontext at the bottom of the screen
TextDrawAlignment(APlayerData[playerid][MissionText], 2); // Align the missiontext to the center
TextDrawUseBox(APlayerData[playerid][MissionText], 1); // Set the missiontext to display inside a box
TextDrawBoxColor(APlayerData[playerid][MissionText], 0x00000066); // Set the box color of the missiontext

 
Nem ez az véletlenül?
« Utoljára szerkesztve: 2012. Október 07. - 22:07:24 írta jozsi0502 »

Formázás
« Válasz #5 Dátum: 2012. Október 07. - 22:18:16 »
0 Show voters
Idézetet írta: jozsi0502 date=1349639780\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"28377\" data-ipsquote-contentclass=\"forums_Topic

// MissionText TextDraw setup
APlayerData[playerid][MissionText] = TextDrawCreate(380.0, 550.0, \" \"); // Setup the missiontext at the bottom of the screen
TextDrawAlignment(APlayerData[playerid][MissionText], 2); // Align the missiontext to the center
TextDrawUseBox(APlayerData[playerid][MissionText], 1); // Set the missiontext to display inside a box
TextDrawBoxColor(APlayerData[playerid][MissionText], 0x00000066); // Set the box color of the missiontext

 
Nem ez az véletlenül?
 
De ez az.Ezt kell formázni.

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
Formázás
« Válasz #6 Dátum: 2012. Október 07. - 22:19:10 »
0 Show voters
De az ezt a végen a 2 -est tedd más számra 1 vagy 3 -ra.
T e x t D r a wA l i g nme n t ( A P l a y e r D a t a [ p l a y e r i d ] [ M i s s i o n T e x t ] , 2 ) ;

Formázás
« Válasz #7 Dátum: 2012. Október 07. - 22:28:13 »
0 Show voters
1,2,3 Ezekre lehet át írni de ha át írom 2-rõl 1-esre vagy 3-asra akkor jobbra balra húzza szóval ez nem jó

Formázás
« Válasz #8 Dátum: 2012. Október 07. - 22:32:44 »
0 Show voters
Ezeken nem kell állítani semmit.Ezeket bõvíteni kell dolgokkal.Ha lesz egy kis idõm megcsinálom neked olyanra mint ami a Convoy Truckingon van.Csak most én is a szerveremet bütykölöm :)
« Utoljára szerkesztve: 2012. Október 07. - 22:34:48 írta halaloszto100 »

Formázás
« Válasz #9 Dátum: 2012. Október 07. - 22:34:54 »
0 Show voters
Akkor nagyon meg köszönném 

Dupla hozzászólás automatikusan összefûzve. ( 2012. Október 07. - 23:15:39 )

És a sebesség mérõt is kellene formázni legyél szíves ezt is meg csinálni
 
Speedometer_Setup(playerid)
{
// Setup the speedometer for the player
APlayerData[playerid][speedometerText] = TextDrawCreate(480.0, 395.0, \" \");
APlayerData[playerid][FuelGauge] = TextDrawCreate(475.0, 410.0, \" \");
// Enable the TextDraw for this player
TextDrawShowForPlayer(playerid, APlayerData[playerid][speedometerText]);
TextDrawShowForPlayer(playerid, APlayerData[playerid][FuelGauge]);
// Start the speedometer timer
APlayerData[playerid][speedometerTimer] = SetTimerEx(\"Speedometer_Update\", 500, true, \"i\", playerid);
return 1;
}
« Utoljára szerkesztve: 2012. Október 07. - 23:15:39 írta jozsi0502 »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal