×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Fonksiyon] ui.addTextArea
1 / 3 › »
[Fonksiyon] ui.addTextArea
Kmlcan
« Citoyen »
1391075580000
    • Kmlcan#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  1
Herkese selam. Geçen gün EN subforumunda addTextAreaEx gibi bir fonksiyon paylaşıldığını gördüm, ben de benzerini TR'de paylaşayım dedim. Fakat tam kodu yazdım kı Evilsantah'ın da tıpkısından bir tane daha yazdığını gördüm.

Her neyse, bu konuyu ui.addTextArea fonksiyonuna her ekleme yapığımda güncelleyeceğim. Şu anlık sadece ortalama, transformice, stroke ve transformice2 booleanları var.

a dit :
tA = ui.addTextArea
function ui.addTextArea(i, m, n, x, y, w, h, c1, c2, o, f, ce, tfm, s, tfm2)
if ce then
x = x - w / 2
y = y - h / 2
end
if tfm then
c1 = 0x324650
c2 = c1
o = 1
tA(i+34000, "", n, x-1, y-1, w, h, 0x648FA4, 0x648FA4, o, f)
tA(i+44000, "", n, x+1, y+1, w, h, 0x12171C, 0x12171C, o, f)
end
if tfm2 then
c1, c2, o, m = 0x324650, 0x27373F, 1, "\n"..m
tA(i, m, n, x, y, w, h, c1, c2, o, f)
tA(i+99000, "", n, x-5, y-5, w+10, 12, 0x27373F, 0x27373F, 1, f)
tA(i+99001, "<V><b><font size='15'>"..tfm2.."</font></b>", n, x-5, y-10, w+10, nil, 0, 1, 0, f)
tA(i+99002, "", n, x+w-5, y-3, 8, 8, 0x009D9D, 0x009D9D, 1, f)
tA(i+99003, "<p align='center'><font size='17' color='#324650'><b><a href='event:close'>×", n, x+w-10, y-12, nil, nil, 0, 0, 0, f)
end
if s then
local a = m:gsub("color='(.-)'", "")
tA(i+10001, "<font color='#1'>"..a, n, x+1, y, w, h, 0, 1, 0, f)
tA(i+10002, "<font color='#1'>"..a, n, x-1, y, w, h, 0, 1, 0, f)
tA(i+10003, "<font color='#1'>"..a, n, x, y+1, w, h, 0, 1, 0, f)
tA(i+10004, "<font color='#1'>"..a, n, x, y-1, w, h, 0, 1, 0, f)
tA(i+10005, "<font color='#1'>"..a, n, x+1, y-1, w, h, 0, 1, 0, f)
tA(i+10006, "<font color='#1'>"..a, n, x-1, y-1, w, h, 0, 1, 0, f)
tA(i+10007, "<font color='#1'>"..a, n, x+1, y+1, w, h, 0, 1, 0, f)
tA(i+10008, "<font color='#1'>"..a, n, x-1, y+1, w, h, 0, 1, 0, f)
end
tA(tfm2 and i+99004 or i, m, n, x, y, w, h, c1, c2, tfm2 and 0 or o, f)
end

Transformice, stroke ve transformice2 boolean'ı için ui.removeTextArea
a dit :
rA = ui.removeTextArea
function ui.removeTextArea(i, n, tfm, s, tfm2)
if tfm then
rA(i+34000, n)
rA(i+44000, n)
end
if s then
for i=1,8 do
rA(i+10000, n)
end
end
if tfm2 then
for i=0,4 do
rA(i+99000, n)
end
end
rA(i, n)
end

Kullanımı:
a dit :
ui.addTextArea(id, mesaj, hedef, x, y, uzunluk, genislik, renk1, renk2, saydamlik, sabitlik, ortalama, transformice, stroke, transformice2)

Eğer ortalamayı true yaparsaniz textArea'ları zeminler gibi ortasından alabilir, transformice'ı true yaparsanız popup stillerinde textArea oluşturabilirsiniz, eğer stroke'u true yaparsanız da Transformice logosu gibi arkada gölge türü bir şey koyabilirsiniz, transformice2'yi true yaparsanız da Transformice'ın yeni stili gibi yapabilirsiniz. Kolay gelsin.

Not: Yükseklik ve genişlik nil olamaz çünkü onlara gore ayarlıyor.
Interspeed
« Citoyen »
1391075820000
    • Interspeed#0000
    • Profil
    • Derniers messages
    • Tribu
#2
  0
teşekkürler
Enomicefare
« Citoyen »
1391076060000
    • Enomicefare#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  0
teşekkür çok işime yaradı
Kmlcan
« Citoyen »
1391076480000
    • Kmlcan#0000
    • Profil
    • Derniers messages
    • Tribu
#4
  0
Bu kodu kullanarak Luaception:
a dit :
msg = [[addText = ui.addTextArea

function ui.addTextArea(i, m, n, x, y, w, h, c1, c2, o, f, ce)
if ce then
x = x - w / 2
y = y - h / 2
end
addText(i, m, n, x, y, w, h, c1, c2, o, f)
end

ui.addTextArea(0, msg, nil, 400, 200, 500, 150, 0, 1, 0.8, true, true)]]

addText = ui.addTextArea

function ui.addTextArea(i, m, n, x, y, w, h, c1, c2, o, f, ce)
if ce then
x = x - w / 2
y = y - h / 2
end
addText(i, m, n, x, y, w, h, c1, c2, o, f)
end

ui.addTextArea(0, msg, nil, 400, 200, 500, 150, 0, 1, 0.8, true, true)
Hotspotower
« Citoyen »
1391076840000
    • Hotspotower#0000
    • Profil
    • Derniers messages
    • Tribu
#5
  0
Teşekkürler!
Fatihmilano
« Citoyen »
1391076960000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#6
  0
Bilgilendirme için teşekkürler.
Duygubebekim
« Citoyen »
1391203200000
    • Duygubebekim#0000
    • Profil
    • Derniers messages
#7
  0
Hotspotower a dit :
Teşekkürler!


.
Oyga
« Citoyen »
1392543180000
    • Oyga#0000
    • Profil
    • Derniers messages
    • Tribu
#8
  0
Popup ile değiştiricem, umarım hata çıkmaz. :P

Edit: Yapamadım, hata yok ama popup çıkmıyor.
Enomicefare
« Citoyen »
1392547440000
    • Enomicefare#0000
    • Profil
    • Derniers messages
    • Tribu
#9
  0
Oyga a dit :
Popup ile değiştiricem, umarım hata çıkmaz. :P

Edit: Yapamadım, hata yok ama popup çıkmıyor.

popup da çeşit var ona göre ayarla
Kmlcan
« Citoyen »
1393868520000
    • Kmlcan#0000
    • Profil
    • Derniers messages
    • Tribu
#10
  0
Güncellendi.
Neonstrayzer
« Citoyen »
1393869180000
    • Neonstrayzer#0000
    • Profil
    • Derniers messages
    • Tribu
#11
  0
Teşekkürler normal textden daha güzel olmuş.
Kmlcan
« Citoyen »
1394221260000
    • Kmlcan#0000
    • Profil
    • Derniers messages
    • Tribu
#12
  0
Transformice boolean'ı için ui.removeTextArea eklendi.
Abuzittinde
1398330360000
    • Abuzittinde#0000
    • Profil
    • Derniers messages
#13
[Modéré par Mellefromage, raison : spam]
Dogangun
« Citoyen »
1398334560000
    • Dogangun#0000
    • Profil
    • Derniers messages
    • Tribu
#14
  0
Teşekkürler.
Cannmertt
1398337920000
    • Cannmertt#0000
    • Profil
    • Derniers messages
    • Tribu
#15
[Modéré par Mellefromage, raison : spam]
Barsemsbot
« Citoyen »
1399296000000
    • Barsemsbot#0000
    • Profil
    • Derniers messages
    • Tribu
#16
  0
Removeyi nasıl yapacağız?
Fatihmilano
« Citoyen »
1399296000000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#17
  0
,true)
Barsemsbot
« Citoyen »
1399296120000
    • Barsemsbot#0000
    • Profil
    • Derniers messages
    • Tribu
#18
  0
Fatihmilano a dit :
,true)

Barsemsbot a dit :
[url=]Removeyi[/url] nasıl yapacağız?

Remove text ara yapıyorum ama siyah bişi oluyo yerine.
Fatihmilano
« Citoyen »
1399296240000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#19
  0
Barsemsbot a dit :
Remove text ara yapıyorum ama siyah bişi oluyo yerine.

Fatihmilano a dit :
,true)

metin
Barsemsbot
« Citoyen »
1399296720000
    • Barsemsbot#0000
    • Profil
    • Derniers messages
    • Tribu
#20
  0
text areanın sonunda var nereye.
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Fonksiyon] ui.addTextArea
1 / 3 › »
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27