Szerző Téma: számok dxDrawText-be  (Megtekintve 1702 alkalommal)

számok dxDrawText-be
« Dátum: 2016. augusztus 30. - 13:49:33 »
0 Show voters
Sziasztok! Csináltam egy nyomó gombos telefont, és amikor lenyomsz egy számot az a dxDrawTextbe írodjón bele, maximum 21 karakter lehessen benne. De nem tudom hogyan valósitsam meg.
 
outputDebugString ( \"2. lap\" )
 dxDrawRectangle(1648, 538, 0, 26, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, screenH * 0.7833, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8495) - 1, screenH * 0.7833, screenW * 0.9839, screenH * 0.7833, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, screenH * 0.7833, screenW * 0.9839, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8495, screenH * 0.3426, screenW * 0.1344, screenH * 0.4407, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.8943) - 1, (screenH * 0.7389) - 1, (screenW * 0.8943) - 1, screenH * 0.7741, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, (screenH * 0.7389) - 1, (screenW * 0.8943) - 1, (screenH * 0.7389) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8943) - 1, screenH * 0.7741, screenW * 0.9370, screenH * 0.7741, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, screenH * 0.7741, screenW * 0.9370, (screenH * 0.7389) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8943, screenH * 0.7389, screenW * 0.0427, screenH * 0.0352, tocolor(255, 255, 255, 255), false)
        dxDrawText(\"Hivás\", screenW * 0.8938, screenH * 0.7389, screenW * 0.9370, screenH * 0.7741, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9156, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8495) - 1, screenH * 0.3778, screenW * 0.9156, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9156, screenH * 0.3778, screenW * 0.9156, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8495, screenH * 0.3426, screenW * 0.0661, screenH * 0.0352, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.9187) - 1, (screenH * 0.3426) - 1, (screenW * 0.9187) - 1, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, (screenH * 0.3426) - 1, (screenW * 0.9187) - 1, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.9187) - 1, screenH * 0.3778, screenW * 0.9839, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, screenH * 0.3778, screenW * 0.9839, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.9187, screenH * 0.3426, screenW * 0.0651, screenH * 0.0352, tocolor(255, 255, 255, 255), false)
        dxDrawText(\"Tárcsázás\", screenW * 0.8490, screenH * 0.3417, screenW * 0.9156, screenH * 0.3778, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"Névjegyek\", screenW * 0.9187, screenH * 0.3417, screenW * 0.9839, screenH * 0.3778, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.5583) - 1, (screenW * 0.8495) - 1, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.8885, (screenH * 0.5583) - 1, (screenW * 0.8495) - 1, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8495) - 1, screenH * 0.5870, screenW * 0.8885, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.8885, screenH * 0.5870, screenW * 0.8885, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8495, screenH * 0.5583, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.5583) - 1, (screenW * 0.8964) - 1, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, (screenH * 0.5583) - 1, (screenW * 0.8964) - 1, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8964) - 1, screenH * 0.5870, screenW * 0.9370, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, screenH * 0.5870, screenW * 0.9370, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8964, screenH * 0.5583, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.5583) - 1, (screenW * 0.9432) - 1, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, (screenH * 0.5583) - 1, (screenW * 0.9432) - 1, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.9432) - 1, screenH * 0.5870, screenW * 0.9839, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, screenH * 0.5870, screenW * 0.9839, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.9432, screenH * 0.5583, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.5963) - 1, (screenW * 0.8495) - 1, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.8885, (screenH * 0.5963) - 1, (screenW * 0.8495) - 1, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8495) - 1, screenH * 0.6250, screenW * 0.8885, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.8885, screenH * 0.6250, screenW * 0.8885, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8495, screenH * 0.5963, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.6343) - 1, (screenW * 0.8495) - 1, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.8885, (screenH * 0.6343) - 1, (screenW * 0.8495) - 1, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8495) - 1, screenH * 0.6630, screenW * 0.8885, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.8885, screenH * 0.6630, screenW * 0.8885, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8495, screenH * 0.6343, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.6722) - 1, (screenW * 0.8495) - 1, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.8885, (screenH * 0.6722) - 1, (screenW * 0.8495) - 1, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8495) - 1, screenH * 0.7009, screenW * 0.8885, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.8885, screenH * 0.7009, screenW * 0.8885, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8495, screenH * 0.6722, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.5963) - 1, (screenW * 0.8964) - 1, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, (screenH * 0.5963) - 1, (screenW * 0.8964) - 1, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8964) - 1, screenH * 0.6250, screenW * 0.9370, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, screenH * 0.6250, screenW * 0.9370, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8964, screenH * 0.5963, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.6343) - 1, (screenW * 0.8964) - 1, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, (screenH * 0.6343) - 1, (screenW * 0.8964) - 1, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8964) - 1, screenH * 0.6630, screenW * 0.9370, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, screenH * 0.6630, screenW * 0.9370, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8964, screenH * 0.6343, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.6722) - 1, (screenW * 0.8964) - 1, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, (screenH * 0.6722) - 1, (screenW * 0.8964) - 1, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8964) - 1, screenH * 0.7009, screenW * 0.9370, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, screenH * 0.7009, screenW * 0.9370, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8964, screenH * 0.6722, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.5963) - 1, (screenW * 0.9432) - 1, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, (screenH * 0.5963) - 1, (screenW * 0.9432) - 1, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.9432) - 1, screenH * 0.6250, screenW * 0.9839, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, screenH * 0.6250, screenW * 0.9839, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.9432, screenH * 0.5963, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.6343) - 1, (screenW * 0.9432) - 1, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, (screenH * 0.6343) - 1, (screenW * 0.9432) - 1, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.9432) - 1, screenH * 0.6630, screenW * 0.9839, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, screenH * 0.6630, screenW * 0.9839, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.9432, screenH * 0.6343, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.6722) - 1, (screenW * 0.9432) - 1, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, (screenH * 0.6722) - 1, (screenW * 0.9432) - 1, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.9432) - 1, screenH * 0.7009, screenW * 0.9839, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, screenH * 0.7009, screenW * 0.9839, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.9432, screenH * 0.6722, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawText(\"\", 1630, 602, 1706, 634, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false)
        dxDrawText(\"1\", screenW * 0.8490, screenH * 0.5574, screenW * 0.8885, screenH * 0.5870, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"2\", screenW * 0.8964, screenH * 0.5583, screenW * 0.9370, screenH * 0.5870, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"3\", screenW * 0.9432, screenH * 0.5583, screenW * 0.9828, screenH * 0.5880, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"4\", screenW * 0.8490, screenH * 0.5954, screenW * 0.8885, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"5\", screenW * 0.8964, screenH * 0.5963, screenW * 0.9370, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"5\", screenW * 0.8964, screenH * 0.5963, screenW * 0.9370, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"6\", screenW * 0.9432, screenH * 0.5954, screenW * 0.9828, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"7\", screenW * 0.8490, screenH * 0.6333, screenW * 0.8885, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"8\", screenW * 0.8964, screenH * 0.6343, screenW * 0.9370, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"8\", screenW * 0.8964, screenH * 0.6343, screenW * 0.9370, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"6\", screenW * 0.9432, screenH * 0.5954, screenW * 0.9828, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"9\", screenW * 0.9432, screenH * 0.6333, screenW * 0.9828, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"*\", screenW * 0.8490, screenH * 0.6713, screenW * 0.8885, screenH * 0.7009, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"0\", screenW * 0.8964, screenH * 0.6722, screenW * 0.9370, screenH * 0.7009, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"#\", screenW * 0.9432, screenH * 0.6713, screenW * 0.9828, screenH * 0.7009, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)

Nem elérhető Eduka

  • 214
    • Profil megtekintése
számok dxDrawText-be
« Válasz #1 Dátum: 2016. augusztus 30. - 14:16:40 »
0 Show voters
string.len()

számok dxDrawText-be
« Válasz #2 Dátum: 2016. augusztus 30. - 15:21:03 »
0 Show voters
Igen, az a max. 21 karakter azt nagyon is köszönöm, de az első kérdésemre még mindig várom a választ.

Nem elérhető Eduka

  • 214
    • Profil megtekintése
számok dxDrawText-be
« Válasz #3 Dátum: 2016. augusztus 30. - 15:35:02 »
0 Show voters
Ja sry, guiCreateEdit, majd lekéred onnan és drawTexttel kiíratod

számok dxDrawText-be
« Válasz #4 Dátum: 2016. augusztus 30. - 16:00:01 »
0 Show voters
Pont ez akartam elkerülni, mivel nyomó gombos rányomsz a rectangle-re és a dxDrawText-be belekéne írnia azt a karaktert ami a rectangel-on van.

számok dxDrawText-be
« Válasz #5 Dátum: 2016. augusztus 30. - 18:16:15 »
0 Show voters
Csinálj egy dx gombot és ha rákattint valaki, akkor csinálja a dolgát. Ha jól emlékszem a fórumon már volt szó többször is a dx gombokról.

számok dxDrawText-be
« Válasz #6 Dátum: 2016. augusztus 30. - 20:09:47 »
0 Show voters
Igen az megvan na de mit csináljon? Még fejben sem jött össze, letudnád írni hogy oldhatom meg? (Nem kérek scriptet a logikáját írd le)

számok dxDrawText-be
« Válasz #7 Dátum: 2016. augusztus 30. - 21:46:22 »
0 Show voters
Ha pl az 5-öst nyomod le, és egy telefonszámhoz kell, akkor bekéred a már leírt telefonszámot, és hozzáadod az 5-öst (hozzáfűzöd).
 
telszam = telszam..\"5\"
-- persze változóba van az 5-ös:
telszam = telszam..lenyomottgomb

számok dxDrawText-be
« Válasz #8 Dátum: 2016. augusztus 30. - 22:09:19 »
0 Show voters
Nekem nem sikerül, valahogy így probáltam: (a biztonság kedvéért az egész kódot berakom)
[Client-Side:]
 
function lap ()
setElementData(localPlayer, \"mobillap\", 1)
setElementData(localPlayer, \"telszam\", 0)
end
addEventHandler(\"onClientResourceStart\", root, lap)
local screenW, screenH = guiGetScreenSize()
 
addEventHandler(\"onClientRender\", root,
    function()
local lap = getElementData (localPlayer, \"mobillap\")
telszam = getElementData (localPlayer, \"telszam\")
showCursor(true)
if lap == 0 then
outputDebugString ( \"A telefon nincs megnyitva!\" )
setElementData(localPlayer, \"mobillap\", 1)
elseif lap == 1 then --kezdőoldal
outputDebugString ( \"1. lap\" )
        dxDrawImage(screenW * 0.8490, screenH * 0.3333, 259, 522, \":hud/sonyspb1.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(screenW * 0.8542, screenH * 0.3426, 40, 34, \":hud/kameraicon.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(screenW * 0.8490, screenH * 0.7333, 49, 54, \":hud/hivasicon.png\", 0, 0, 0, tocolor(118, 38, 216, 255), false)
elseif lap == 2 then
telszam = getElementData (localPlayer,\"telszam\")
outputDebugString ( \"2. lap\" )
dxDrawText(\"\"..telszam, screenW * 0.8630, screenH * 0.5074, screenW * 0.9667, screenH * 0.5444, tocolor(1, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, true, false, false)
 dxDrawRectangle(1648, 538, 0, 26, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, screenH * 0.7833, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8495) - 1, screenH * 0.7833, screenW * 0.9839, screenH * 0.7833, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, screenH * 0.7833, screenW * 0.9839, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8495, screenH * 0.3426, screenW * 0.1344, screenH * 0.4407, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.8943) - 1, (screenH * 0.7389) - 1, (screenW * 0.8943) - 1, screenH * 0.7741, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, (screenH * 0.7389) - 1, (screenW * 0.8943) - 1, (screenH * 0.7389) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8943) - 1, screenH * 0.7741, screenW * 0.9370, screenH * 0.7741, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, screenH * 0.7741, screenW * 0.9370, (screenH * 0.7389) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8943, screenH * 0.7389, screenW * 0.0427, screenH * 0.0352, tocolor(255, 255, 255, 255), false)
        dxDrawText(\"Hivás\", screenW * 0.8938, screenH * 0.7389, screenW * 0.9370, screenH * 0.7741, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9156, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8495) - 1, screenH * 0.3778, screenW * 0.9156, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9156, screenH * 0.3778, screenW * 0.9156, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8495, screenH * 0.3426, screenW * 0.0661, screenH * 0.0352, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.9187) - 1, (screenH * 0.3426) - 1, (screenW * 0.9187) - 1, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, (screenH * 0.3426) - 1, (screenW * 0.9187) - 1, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.9187) - 1, screenH * 0.3778, screenW * 0.9839, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, screenH * 0.3778, screenW * 0.9839, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.9187, screenH * 0.3426, screenW * 0.0651, screenH * 0.0352, tocolor(255, 255, 255, 255), false)
        dxDrawText(\"Tárcsázás\", screenW * 0.8490, screenH * 0.3417, screenW * 0.9156, screenH * 0.3778, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"Névjegyek\", screenW * 0.9187, screenH * 0.3417, screenW * 0.9839, screenH * 0.3778, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.5583) - 1, (screenW * 0.8495) - 1, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.8885, (screenH * 0.5583) - 1, (screenW * 0.8495) - 1, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8495) - 1, screenH * 0.5870, screenW * 0.8885, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.8885, screenH * 0.5870, screenW * 0.8885, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8495, screenH * 0.5583, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.5583) - 1, (screenW * 0.8964) - 1, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, (screenH * 0.5583) - 1, (screenW * 0.8964) - 1, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8964) - 1, screenH * 0.5870, screenW * 0.9370, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, screenH * 0.5870, screenW * 0.9370, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8964, screenH * 0.5583, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.5583) - 1, (screenW * 0.9432) - 1, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, (screenH * 0.5583) - 1, (screenW * 0.9432) - 1, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.9432) - 1, screenH * 0.5870, screenW * 0.9839, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, screenH * 0.5870, screenW * 0.9839, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.9432, screenH * 0.5583, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.5963) - 1, (screenW * 0.8495) - 1, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.8885, (screenH * 0.5963) - 1, (screenW * 0.8495) - 1, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8495) - 1, screenH * 0.6250, screenW * 0.8885, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.8885, screenH * 0.6250, screenW * 0.8885, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8495, screenH * 0.5963, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.6343) - 1, (screenW * 0.8495) - 1, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.8885, (screenH * 0.6343) - 1, (screenW * 0.8495) - 1, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8495) - 1, screenH * 0.6630, screenW * 0.8885, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.8885, screenH * 0.6630, screenW * 0.8885, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8495, screenH * 0.6343, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.6722) - 1, (screenW * 0.8495) - 1, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.8885, (screenH * 0.6722) - 1, (screenW * 0.8495) - 1, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8495) - 1, screenH * 0.7009, screenW * 0.8885, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.8885, screenH * 0.7009, screenW * 0.8885, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8495, screenH * 0.6722, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.5963) - 1, (screenW * 0.8964) - 1, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, (screenH * 0.5963) - 1, (screenW * 0.8964) - 1, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8964) - 1, screenH * 0.6250, screenW * 0.9370, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, screenH * 0.6250, screenW * 0.9370, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8964, screenH * 0.5963, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.6343) - 1, (screenW * 0.8964) - 1, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, (screenH * 0.6343) - 1, (screenW * 0.8964) - 1, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8964) - 1, screenH * 0.6630, screenW * 0.9370, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, screenH * 0.6630, screenW * 0.9370, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8964, screenH * 0.6343, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.6722) - 1, (screenW * 0.8964) - 1, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, (screenH * 0.6722) - 1, (screenW * 0.8964) - 1, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.8964) - 1, screenH * 0.7009, screenW * 0.9370, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9370, screenH * 0.7009, screenW * 0.9370, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8964, screenH * 0.6722, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.5963) - 1, (screenW * 0.9432) - 1, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, (screenH * 0.5963) - 1, (screenW * 0.9432) - 1, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.9432) - 1, screenH * 0.6250, screenW * 0.9839, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, screenH * 0.6250, screenW * 0.9839, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.9432, screenH * 0.5963, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.6343) - 1, (screenW * 0.9432) - 1, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, (screenH * 0.6343) - 1, (screenW * 0.9432) - 1, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.9432) - 1, screenH * 0.6630, screenW * 0.9839, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, screenH * 0.6630, screenW * 0.9839, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.9432, screenH * 0.6343, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.6722) - 1, (screenW * 0.9432) - 1, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, (screenH * 0.6722) - 1, (screenW * 0.9432) - 1, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine((screenW * 0.9432) - 1, screenH * 0.7009, screenW * 0.9839, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(screenW * 0.9839, screenH * 0.7009, screenW * 0.9839, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.9432, screenH * 0.6722, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
        dxDrawText(\"\", 1630, 602, 1706, 634, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false)
        dxDrawText(\"1\", screenW * 0.8490, screenH * 0.5574, screenW * 0.8885, screenH * 0.5870, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"2\", screenW * 0.8964, screenH * 0.5583, screenW * 0.9370, screenH * 0.5870, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"3\", screenW * 0.9432, screenH * 0.5583, screenW * 0.9828, screenH * 0.5880, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"4\", screenW * 0.8490, screenH * 0.5954, screenW * 0.8885, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"5\", screenW * 0.8964, screenH * 0.5963, screenW * 0.9370, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"5\", screenW * 0.8964, screenH * 0.5963, screenW * 0.9370, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"6\", screenW * 0.9432, screenH * 0.5954, screenW * 0.9828, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"7\", screenW * 0.8490, screenH * 0.6333, screenW * 0.8885, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"8\", screenW * 0.8964, screenH * 0.6343, screenW * 0.9370, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"8\", screenW * 0.8964, screenH * 0.6343, screenW * 0.9370, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"6\", screenW * 0.9432, screenH * 0.5954, screenW * 0.9828, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"9\", screenW * 0.9432, screenH * 0.6333, screenW * 0.9828, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"*\", screenW * 0.8490, screenH * 0.6713, screenW * 0.8885, screenH * 0.7009, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"0\", screenW * 0.8964, screenH * 0.6722, screenW * 0.9370, screenH * 0.7009, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        dxDrawText(\"#\", screenW * 0.9432, screenH * 0.6713, screenW * 0.9828, screenH * 0.7009, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
end -- lapos elágazás vége
 
--ezek mindig itt vannak......
dxDrawImage(screenW * 0.5740, screenH * 0.2065, 1377, 814, \":hud/sonysp.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawLine(1630 - 1, 846 - 1, 1630 - 1, 882, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1889, 846 - 1, 1630 - 1, 846 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1630 - 1, 882, 1889, 882, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1889, 882, 1889, 846 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8490, screenH * 0.7833, 259, 36, tocolor(1, 0, 0, 255), false)
        dxDrawRectangle(screenW * 0.8490, screenH * 0.3324, 259, 11, tocolor(1, 1, 0, 200), false)
        dxDrawImage(1829, 846, 40, 33, \":hud/1.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawImage(1649, 847, 40, 35, \":hud/2.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawImage(1739, 846, 40, 36, \":hud/3.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)
--dxDrawImage(1625, 918, 268, 4, \":hud/sonyspgreenled.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        --dxDrawImage(1625, 918, 268, 4, \":hud/sonysppurpleled.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        --dxDrawImage(1625, 918, 268, 4, \":hud/sonyspredled.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)
    end
)
 
    function dobozbaVan(dX, dY, dSZ, dM, eX, eY)
            if(eX >= dX and eX <= dX+dSZ and eY >= dY and eY <= dY+dM) then
                return true
            else
                return false
            end
        end
           
           
           
            addEventHandler(\"onClientClick\", getRootElement(), function(gomb, allapot, absX, absY)
   local lap = getElementData (localPlayer, \"mobillap\")
            if allapot == \"down\" and gomb == \"left\" then
      if dobozbaVan(1739, 846, 40, 36, absX, absY)  then
         setElementData(localPlayer, \"mobillap\", 1)   
         elseif dobozbaVan(screenW * 0.8490, screenH * 0.7333, 49, 54, absX, absY)  then
                    setElementData(localPlayer, \"mobillap\", 2)
         elseif dobozbaVan(1649, 847, 40, 35, absX, absY) then
         setElementData(localPlayer, \"mobillap\", 1)   
         elseif dobozbaVan (1649, 847, 40, 35, absX, absY) and lap == 1 then
         setElementData (localPlayer, \"mobillap\", 0)
         elseif dobozbaVan (screenW * 0.8490, screenH * 0.3324, 259, 11,absX,absY) then
            if lap == 1 or lap == 2 then
         setElementData (localPlayer, \"mobillap\", 3)
            elseif lap == 3 then
            setElementData (localPlayer, \"mobillap\", 1)
         elseif dobozbaVan (screenW * 0.8490, screenH * 0.5574, screenW * 0.8885, screenH * 0.5870,absX,absY) then --1
               telszam = telszam..1   
         end
                end
            end
        end
        ) 

számok dxDrawText-be
« Válasz #9 Dátum: 2016. augusztus 30. - 22:21:43 »
0 Show voters
Ennél felesleges az elementData.. meg amúgy a tabulátorokat nem össze-vissza kell nyomkodni.

számok dxDrawText-be
« Válasz #10 Dátum: 2016. augusztus 30. - 22:35:47 »
0 Show voters
Akkor hogyan tudnám megoldani?

számok dxDrawText-be
« Válasz #11 Dátum: 2016. augusztus 30. - 23:13:33 »
0 Show voters
local screenW, screenH = guiGetScreenSize()
local telszam = \"\"
local lap = 2
local phoneIsVisible = false
addEventHandler(\"onClientRender\", root, function()
    if phoneIsVisible then
        if lap == 1 then --kezdőoldal
            outputDebugString(\"1. lap\")
            dxDrawImage(screenW * 0.8490, screenH * 0.3333, 259, 522, \":hud/sonyspb1.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)
            dxDrawImage(screenW * 0.8542, screenH * 0.3426, 40, 34, \":hud/kameraicon.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)
            dxDrawImage(screenW * 0.8490, screenH * 0.7333, 49, 54, \":hud/hivasicon.png\", 0, 0, 0, tocolor(118, 38, 216, 255), false)
        elseif lap == 2 then
            outputDebugString(\"2. lap\")
            dxDrawText(telszam, screenW * 0.8630, screenH * 0.5074, screenW * 0.9667, screenH * 0.5444, tocolor(1, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, true, false, false)
            dxDrawRectangle(1648, 538, 0, 26, tocolor(255, 255, 255, 255), false)
            dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, screenH * 0.7833, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9839, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine((screenW * 0.8495) - 1, screenH * 0.7833, screenW * 0.9839, screenH * 0.7833, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9839, screenH * 0.7833, screenW * 0.9839, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawRectangle(screenW * 0.8495, screenH * 0.3426, screenW * 0.1344, screenH * 0.4407, tocolor(255, 255, 255, 255), false)
            dxDrawLine((screenW * 0.8943) - 1, (screenH * 0.7389) - 1, (screenW * 0.8943) - 1, screenH * 0.7741, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9370, (screenH * 0.7389) - 1, (screenW * 0.8943) - 1, (screenH * 0.7389) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine((screenW * 0.8943) - 1, screenH * 0.7741, screenW * 0.9370, screenH * 0.7741, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9370, screenH * 0.7741, screenW * 0.9370, (screenH * 0.7389) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawRectangle(screenW * 0.8943, screenH * 0.7389, screenW * 0.0427, screenH * 0.0352, tocolor(255, 255, 255, 255), false)
            dxDrawText(\"Hivás\", screenW * 0.8938, screenH * 0.7389, screenW * 0.9370, screenH * 0.7741, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
            dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9156, (screenH * 0.3426) - 1, (screenW * 0.8495) - 1, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine((screenW * 0.8495) - 1, screenH * 0.3778, screenW * 0.9156, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9156, screenH * 0.3778, screenW * 0.9156, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawRectangle(screenW * 0.8495, screenH * 0.3426, screenW * 0.0661, screenH * 0.0352, tocolor(255, 255, 255, 255), false)
            dxDrawLine((screenW * 0.9187) - 1, (screenH * 0.3426) - 1, (screenW * 0.9187) - 1, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9839, (screenH * 0.3426) - 1, (screenW * 0.9187) - 1, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine((screenW * 0.9187) - 1, screenH * 0.3778, screenW * 0.9839, screenH * 0.3778, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9839, screenH * 0.3778, screenW * 0.9839, (screenH * 0.3426) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawRectangle(screenW * 0.9187, screenH * 0.3426, screenW * 0.0651, screenH * 0.0352, tocolor(255, 255, 255, 255), false)
            dxDrawText(\"Tárcsázás\", screenW * 0.8490, screenH * 0.3417, screenW * 0.9156, screenH * 0.3778, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
            dxDrawText(\"Névjegyek\", screenW * 0.9187, screenH * 0.3417, screenW * 0.9839, screenH * 0.3778, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
            dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.5583) - 1, (screenW * 0.8495) - 1, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.8885, (screenH * 0.5583) - 1, (screenW * 0.8495) - 1, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine((screenW * 0.8495) - 1, screenH * 0.5870, screenW * 0.8885, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.8885, screenH * 0.5870, screenW * 0.8885, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawRectangle(screenW * 0.8495, screenH * 0.5583, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
            dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.5583) - 1, (screenW * 0.8964) - 1, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9370, (screenH * 0.5583) - 1, (screenW * 0.8964) - 1, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine((screenW * 0.8964) - 1, screenH * 0.5870, screenW * 0.9370, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9370, screenH * 0.5870, screenW * 0.9370, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawRectangle(screenW * 0.8964, screenH * 0.5583, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
            dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.5583) - 1, (screenW * 0.9432) - 1, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9839, (screenH * 0.5583) - 1, (screenW * 0.9432) - 1, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine((screenW * 0.9432) - 1, screenH * 0.5870, screenW * 0.9839, screenH * 0.5870, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9839, screenH * 0.5870, screenW * 0.9839, (screenH * 0.5583) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawRectangle(screenW * 0.9432, screenH * 0.5583, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
            dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.5963) - 1, (screenW * 0.8495) - 1, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.8885, (screenH * 0.5963) - 1, (screenW * 0.8495) - 1, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine((screenW * 0.8495) - 1, screenH * 0.6250, screenW * 0.8885, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.8885, screenH * 0.6250, screenW * 0.8885, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawRectangle(screenW * 0.8495, screenH * 0.5963, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
            dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.6343) - 1, (screenW * 0.8495) - 1, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.8885, (screenH * 0.6343) - 1, (screenW * 0.8495) - 1, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine((screenW * 0.8495) - 1, screenH * 0.6630, screenW * 0.8885, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.8885, screenH * 0.6630, screenW * 0.8885, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawRectangle(screenW * 0.8495, screenH * 0.6343, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
            dxDrawLine((screenW * 0.8495) - 1, (screenH * 0.6722) - 1, (screenW * 0.8495) - 1, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.8885, (screenH * 0.6722) - 1, (screenW * 0.8495) - 1, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine((screenW * 0.8495) - 1, screenH * 0.7009, screenW * 0.8885, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.8885, screenH * 0.7009, screenW * 0.8885, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawRectangle(screenW * 0.8495, screenH * 0.6722, screenW * 0.0391, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
            dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.5963) - 1, (screenW * 0.8964) - 1, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9370, (screenH * 0.5963) - 1, (screenW * 0.8964) - 1, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine((screenW * 0.8964) - 1, screenH * 0.6250, screenW * 0.9370, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9370, screenH * 0.6250, screenW * 0.9370, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawRectangle(screenW * 0.8964, screenH * 0.5963, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
            dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.6343) - 1, (screenW * 0.8964) - 1, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9370, (screenH * 0.6343) - 1, (screenW * 0.8964) - 1, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine((screenW * 0.8964) - 1, screenH * 0.6630, screenW * 0.9370, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9370, screenH * 0.6630, screenW * 0.9370, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawRectangle(screenW * 0.8964, screenH * 0.6343, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
            dxDrawLine((screenW * 0.8964) - 1, (screenH * 0.6722) - 1, (screenW * 0.8964) - 1, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9370, (screenH * 0.6722) - 1, (screenW * 0.8964) - 1, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine((screenW * 0.8964) - 1, screenH * 0.7009, screenW * 0.9370, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9370, screenH * 0.7009, screenW * 0.9370, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawRectangle(screenW * 0.8964, screenH * 0.6722, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
            dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.5963) - 1, (screenW * 0.9432) - 1, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9839, (screenH * 0.5963) - 1, (screenW * 0.9432) - 1, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine((screenW * 0.9432) - 1, screenH * 0.6250, screenW * 0.9839, screenH * 0.6250, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9839, screenH * 0.6250, screenW * 0.9839, (screenH * 0.5963) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawRectangle(screenW * 0.9432, screenH * 0.5963, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
            dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.6343) - 1, (screenW * 0.9432) - 1, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9839, (screenH * 0.6343) - 1, (screenW * 0.9432) - 1, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine((screenW * 0.9432) - 1, screenH * 0.6630, screenW * 0.9839, screenH * 0.6630, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9839, screenH * 0.6630, screenW * 0.9839, (screenH * 0.6343) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawRectangle(screenW * 0.9432, screenH * 0.6343, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
            dxDrawLine((screenW * 0.9432) - 1, (screenH * 0.6722) - 1, (screenW * 0.9432) - 1, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9839, (screenH * 0.6722) - 1, (screenW * 0.9432) - 1, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine((screenW * 0.9432) - 1, screenH * 0.7009, screenW * 0.9839, screenH * 0.7009, tocolor(0, 0, 0, 255), 1, false)
            dxDrawLine(screenW * 0.9839, screenH * 0.7009, screenW * 0.9839, (screenH * 0.6722) - 1, tocolor(0, 0, 0, 255), 1, false)
            dxDrawRectangle(screenW * 0.9432, screenH * 0.6722, screenW * 0.0406, screenH * 0.0287, tocolor(255, 255, 255, 255), false)
            dxDrawText(\"\", 1630, 602, 1706, 634, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false)
            dxDrawText(\"1\", screenW * 0.8490, screenH * 0.5574, screenW * 0.8885, screenH * 0.5870, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
            dxDrawText(\"2\", screenW * 0.8964, screenH * 0.5583, screenW * 0.9370, screenH * 0.5870, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
            dxDrawText(\"3\", screenW * 0.9432, screenH * 0.5583, screenW * 0.9828, screenH * 0.5880, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
            dxDrawText(\"4\", screenW * 0.8490, screenH * 0.5954, screenW * 0.8885, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
            dxDrawText(\"5\", screenW * 0.8964, screenH * 0.5963, screenW * 0.9370, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
            dxDrawText(\"5\", screenW * 0.8964, screenH * 0.5963, screenW * 0.9370, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
            dxDrawText(\"6\", screenW * 0.9432, screenH * 0.5954, screenW * 0.9828, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
            dxDrawText(\"7\", screenW * 0.8490, screenH * 0.6333, screenW * 0.8885, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
            dxDrawText(\"8\", screenW * 0.8964, screenH * 0.6343, screenW * 0.9370, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
            dxDrawText(\"8\", screenW * 0.8964, screenH * 0.6343, screenW * 0.9370, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
            dxDrawText(\"6\", screenW * 0.9432, screenH * 0.5954, screenW * 0.9828, screenH * 0.6250, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
            dxDrawText(\"9\", screenW * 0.9432, screenH * 0.6333, screenW * 0.9828, screenH * 0.6630, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
            dxDrawText(\"*\", screenW * 0.8490, screenH * 0.6713, screenW * 0.8885, screenH * 0.7009, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
            dxDrawText(\"0\", screenW * 0.8964, screenH * 0.6722, screenW * 0.9370, screenH * 0.7009, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
            dxDrawText(\"#\", screenW * 0.9432, screenH * 0.6713, screenW * 0.9828, screenH * 0.7009, tocolor(0, 0, 0, 255), 1.50, \"default-bold\", \"center\", \"center\", false, false, false, false, false)
        end -- lapos elágazás vége
        --ezek mindig itt vannak......
        dxDrawImage(screenW * 0.5740, screenH * 0.2065, 1377, 814, \":hud/sonysp.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawLine(1630 - 1, 846 - 1, 1630 - 1, 882, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1889, 846 - 1, 1630 - 1, 846 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1630 - 1, 882, 1889, 882, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1889, 882, 1889, 846 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(screenW * 0.8490, screenH * 0.7833, 259, 36, tocolor(1, 0, 0, 255), false)
        dxDrawRectangle(screenW * 0.8490, screenH * 0.3324, 259, 11, tocolor(1, 1, 0, 200), false)
        dxDrawImage(1829, 846, 40, 33, \":hud/1.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawImage(1649, 847, 40, 35, \":hud/2.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawImage(1739, 846, 40, 36, \":hud/3.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        --dxDrawImage(1625, 918, 268, 4, \":hud/sonyspgreenled.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        --dxDrawImage(1625, 918, 268, 4, \":hud/sonysppurpleled.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        --dxDrawImage(1625, 918, 268, 4, \":hud/sonyspredled.png\", 0, 0, 0, tocolor(255, 255, 255, 255), false)
    end
end)
addEventHandler(\"onClientKey\", root, function(button, state)
    if button == \"m\" and state then -- egér
        showCursor(not isCursorShowing())
    elseif button == \"l\" and state then -- telefon
        phoneIsVisible = not phoneIsVisible
        telszam = \"\" -- lenulláza, teszteléshez kell
    end
end)
addEventHandler(\"onClientClick\", root, function(gomb, allapot, absX, absY)
    if allapot == \"down\" and gomb == \"left\" then
        if lap == 2 then
            if dobozbaVan (screenW * 0.8490, screenH * 0.5574, screenW * 0.8885, screenH * 0.5870, absX, absY) then --1
                telszam = telszam .. 1
            elseif dobozbaVan (screenW * 0.8964, screenH * 0.5583, screenW * 0.9370, screenH * 0.5870, absX, absY) then --2
                telszam = telszam .. 2
            end
        end
    end
end)
function dobozbaVan(dX, dY, dSZ, dM, eX, eY)
    if (eX >= dX and eX <= dX+dSZ and eY >= dY and eY <= dY+dM) then
        return true
    else
        return false
    end
end

 
Majd átírod meg hozzáírod, ami neked kell.
De amúgy a gombokkal bajban leszel, mert ha így csinálod, egymásba fognak lógni.

számok dxDrawText-be
« Válasz #12 Dátum: 2016. augusztus 31. - 09:55:52 »
0 Show voters
Köszi, ha lesz idöm kiprobálom, és köszi a figyelmeztetést, a guieditorban szoktam pozícíonálni.
E: A telefonb körül bárhova kattintok, 1-est ír. (Tudom hogy csak az 1-s 2-s-t csináltad meg , de kb. mindenhova 1-st érzékel!
« Utoljára szerkesztve: 2016. augusztus 31. - 11:07:35 írta thegergo02 »

számok dxDrawText-be
« Válasz #13 Dátum: 2016. augusztus 31. - 16:32:08 »
0 Show voters
Idézetet írta: impreZZa date=1472591613\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"62924\" data-ipsquote-contentclass=\"forums_Topic
De amúgy a gombokkal bajban leszel, mert ha így csinálod, egymásba fognak lógni.
 

számok dxDrawText-be
« Válasz #14 Dátum: 2016. augusztus 31. - 16:56:18 »
0 Show voters
Akkor hogyan tudnám megoldani?

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal