Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 18/06/19 in all areas

  1. Try txd:import(id) --Or EngineTXD.import(txd, id) You need to read a bit about the 'self' argument, maybe you will find it a little confusing; but it make things a lot easier when you get it
    1 point
  2. Try this version of MTA: https://nightly.multitheftauto.com/mtasa-1.5.6-rc-18671-20190618.exe
    1 point
  3. إذا ماعندك شي تضيفه للموضوع لا تعلق على الموضوع لما يكون شخص متواصل معي بكل مكان منتدى خاص و ديسكورد وبعد ما اسوي له كل شي واضيع وقتي واعلمه ايش المطلوب بيتجاهل الكلام وبيحط موضوع هذا بيكون ردي
    1 point
  4. بسم الله الرحمن الرحيم اقدم لكم سيرفر حياة واقعية بفكره جديده وعالم جديد وقوانين جديده لانه كل السيرفرات صارت تتكر بنفس الطابع التصميمي والقوانين والخ..... اليوم جبتلكم سيرفر ان شاء الله قريب بيفتح بقوانين جديد باكامل عدد القوانين لا يقل عن 30 قانون جديده كولين ولا في اي قانون يشبه قوانين الورل بلاي المعروفه مختلف بشكل كامل وطبعا طبعا مافي شي اسمه ابي رتبه ولا طلب رتبه ولا تقديم على رتبه تم الغاء الرتبه في السيرفر والغاء الطيران والغاء الشارات والادمنيه ورح يكون الادمنيه من المواطنين ومارح تميزهم عن غيرهم و تم الغاء الريبورت في حال كانت عندك شكوى على شخص او مشكله توجه الى الموقع سوف تم توظيف اشخاص متخصصين لدعم الفني وسوف يساعدونك فورا دسكور: اضغط هنا اضغط هنا :(الموقع (تحت التطوير وفي صوت مع الفلشر
    1 point
  5. You can use render targets perfectly fine. They aren't rendered to the screen they are rendered to a new texture at run time. The image is the only thing that's being drawn to the screen. So, you could have a 100 draw functions and render it to a single texture and only draw that texture to the screen with dxDrawImage. The reason your text became blurry with render targets is because you were either stretching the image or the positions/dimensions were off. Take this simple object oriented approach and you'll have an easy to use function. It works similar to the CEGUI functions except that you're responsible for drawing it, although you could make the function handle that as well. function dxCreateFramedText(text, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI) local self = {} local rt = dxCreateRenderTarget(width, height, true) self.draw = function(x, y, w, h) dxDrawImage(left, top, width, height, rt) end self.update = function() dxSetRenderTarget(rt, true) dxDrawText(text, 1, 1, width + 1, height + 1, tocolor(0, 0, 0), scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(text, 1, -1, width + 1, height - 1, tocolor(0, 0, 0), scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(text, -1, 1, width - 1, height + 1, tocolor(0, 0, 0), scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(text, 1, 1, width - 1, height - 1, tocolor(0, 0, 0), scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(text, 0, 0, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI) dxSetRenderTarget() end self.setText = function(v) text = v self.update() end self.setColor = function(v) color = v self.update() end self.update() return self end local msg1 = dxCreateFramedText("Hello there",222,300,520,140,tocolor(0,255,0),3,'default','left','top',false,false,false) local msg2 = dxCreateFramedText("How are you?",222,400,520,140,tocolor(0,255,0),3,'default','left','top',false,false,false) addEventHandler('onClientRender', root, function() msg1.draw() msg2.draw() end) msg2.setColor(tocolor(0,255,255)) addCommandHandler('c', function() msg1.setColor(tocolor(255,99,0)) end) It may look a little over the top but yeah, it works, and it's fast.
    1 point
  6. Eu ensino isto de graça mais ninguém nunca tem realmente vontade de aprender, eu desisto se quiser aprenda pro conta própria meu tempo não é como lixo. e eu acho que será difícil de você achar alguém aqui pois a maioria dos desenvolvedores de conteúdo brasileiro ativos tem seus próprios projetos e estão ocupado com eles ao menos que o dinheiro fale mais alto para ele é claro.
    1 point
×
×
  • Create New...