Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2015-01-18, 17:10


McDeKi







Wiek: 28
Na forum: 4985 dni
Posty: 95
Nick w MP: McDeKi

Piwa: 186

Respekt: 60

Witam, stworzy?em zas?b, kt?ry pozwala stworzy? edit boxa, ale za pomoc? funkcji DX.

Film: https://www.youtube.com/w...eature=youtu.be

Funkcje:
Sa po angielsku, poniewa? wstawi?em ten zas?b na forum mta, a nie chcia?o mi si? t?umaczy? z powrotem na polski.

createEditBox( string/int id, float( 0 - 1 ) x, float( 0 - 1 ) y, float( 0 - 1 ) width, float( 0 - 1 ) height, bool visible, string text, bool mask, int maxLength, string font text, bool space, int type, function color( r, g, b, a ),  bool rectangle,  function rectangleColor ( r, g, b, a ), float scaleText, bool clip,  int ms ( how many miliseconds have to pass to delete text with backspace), bool helpText , string helpText, function helpTextColor( r, g, b, a ), bool helpTextOff, float helpTextScale, string helpTextFont, bool postGUI, bool carret, function carretColor( r, g, b ), bool specialCharacters, bool clickable ) --//Creates new dxEditBox
 
changeText( id, text ) --//Changes text
 
changeVisibility( id, bool ) --//Changes visibility of edit box
 
clickable( id, bool ) --//Is edit box clickable
 
getText( id ) --//Gets text
 
setPosition( id, x, y ) --//Sets position of edit box
 
setSize( id, width, height ) --//...
 
deleteEditBox( id ) --//Deletes edit box
 
isActive( id ) --//Is edit box clicked
 


Autorem jestem ja.

Skrypt mo?na dowolnie edytowa?.

Ukryta wiadomość / Hidden message(aby ją zobaczyć musisz postawić użytkownikowi)
Wiadomość została ukryta, aby ją przeczytać należy się zalogować.


Przyk?ady:

 
    exports.dxEditBox:createEditBox( "1", 0.2, 0.2, 0.20, 0.07, true, "", false, 25, "arial", false, 0, { 0, 0, 0, 180 }, true, { 255, 255, 255, 180 }, 2, true, 60, true, "Simple box 1", { 0, 0, 0, 40 }, true, 3, "arial", true, true, {0, 114, 210}, false  )
    exports.dxEditBox:createEditBox( "2", 0.3, 0.31, 0.25, 0.07, true, "", true, 25, "arial", false, 0, { 0, 0, 0, 180 }, true, { 0, 205, 0, 180 }, 3, true, 60, true, "Passworded box", { 0, 0, 0, 150 }, true, 3, "arial", true, true, {0, 0, 0}, false  )
    exports.dxEditBox:createEditBox( "3", 0.4, 0.41, 0.30, 0.07, true, "", false, 25, "arial", false, 1, { 255, 255, 255, 180 }, true, { 0, 0, 0, 180 }, 2, true, 60, true, "Numbers only", { 255, 255, 255, 40 }, true, 3, "arial", true, true, {255, 255, 255}, false  )
    exports.dxEditBox:createEditBox( "4", 0.55, 0.51, 0.23, 0.07, true, "", false, 25, "arial", true, 0, { 0, 0, 0, 180 }, true, { 0, 114, 210, 180 }, 2, true, 60, true, "Special char.", { 255, 255, 255, 130 }, true, 3, "arial", true, true, {255, 255, 255}, true )
    exports.dxEditBox:createEditBox( "5", 0.7, 0.61, 0.25, 0.1, true, "", false, 25, "pricedown", false, 0, { 0, 0, 0, 180 }, true, { 255, 255, 255, 80 }, 2, true, 60, true, "Custom param.", { 0, 0, 0, 40 }, true, 2.5, "default", true, true, {0, 0, 0}, false  )
 


Ostatnio zmieniony przez Iggy 2015-03-28, 18:53, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 138 piw(a):
venzikk, Malentas, MIKAELmta, .RiV, freadyy, Kondzius, SanLocker, GamerHD11, awfesa, Atroth, MetalowY., Pevo, Szydlo, LightMen, Qwertick, Masterusek, xJakob, ARS*, MiniDemo, PenkY, matii221, jagoreq, Xrent, Avenged, naTson3310, Vxen, nudy0, graczniko, Hades., santex, Gpla, DomineQ, Adis.exe, Xyrusek, czlowiekjaja, Boysiak, Inder00, Kuks*, Kajsky, Vintage, Gigabyte, Mikołajj, .Vec, Hemoglobina, Makari, kuba43, ReDsKill, Zbigniewqq, chojnas, Ventus, _jvneczek, adaskOO, K0dziaK, MassUUUU, CytrusekLUA, Rumper, JakisPolak199, NotPaladyn, Ziomeczek666, TyGeR, fledol123, Janushek*, kamison, Grace, BoJaKoX, MrDadosz, Json, Gorn5, szymsoon, NewStories, Karolowatyy, mixLoLmix2, Vruzzi, Delivery, Svarexx, Verismus, Mleczu, WillHeQ, Bloodas, xVxAlAnxVx, AmLotte., Radek503, manieks78, twojmam, DrifteK, Pyrek24, Vooder, ASIEK, CJ_O, thcsilver, Miki12, pilaj, Dray17, Misza98, rudziku, jayjay89445345, KarasekPl, TheArasik, Ksiadz, cpe*, Remix110, Bartlomiej, xyzzz^, SzakeQ, Geraldis, Virtex, Sektor, Leszek, Adust, SuperGoku2003, KexterPL, VeLMaX, Kuba01, NorbiTTT, SzoPPP, nevym, VirtualYt, KubeczekPL, Flapcioo, Finniuszek, DeHektor, MenQun, Pepe, Norbert1234, AssasiPlayGames, thegamerq, MareczeQ, Przytulak, rxkrxd, blackdevv, JhinBeam213, WyslannikDIabla, Daisu, Guma112, Arach, ddasasd, nero^, Jellonek
Wysłany: 2018-11-26, 21:56


kamilryb1

LUA






Wiek: 21
Na forum: 4407 dni
Posty: 146

Piwa: 321

Respekt: 7,3

Ostrzeżeń: 40%
Bardzo przydatny zas?b, polecam pobiera?, po prezentacji ju? kusi ;) .
, wykona?e?, bardzo dobr? robot? ;) .

Postaw piwo autorowi tego posta
 

 
Tagi: edit :: box
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Zasoby do MTA » [SKRYPT] Dx edit box Odpowiedz do tematu

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku