Jump to content

iAxel

Members
  • Posts

    160
  • Joined

  • Last visited

Everything posted by iAxel

  1. Hey Bonsai, you can add support blips for your radar? I would be very is grateful
  2. а какие еще ЯП есть которые на basic-style
  3. iAxel

    [HELP] DxScroll

    [quote name=..&G:..]Download Valhalla gaming roleplay from google and get the resource called 'vgscoreboard' and get the example from there. There's nothing related to rendertarget
  4. iAxel

    [HELP] DxScroll

    So it does... You need the position relative to the rendertarget? I need to move objects within rendertarget with the mouse
  5. Можно пример?
  6. iAxel

    [HELP] DxScroll

    Do not onClientMouseMove for GUI? Updated the code above I need to know the position of the cursor inside RenderTarget
  7. https://github.com/StiviiK/mta-sa_lua_utils/blob/master/switch.lua local cond = "var1" switch (cond) { ["var1"] = function () error("var1") end; [false] = function () error("false") end; ["hello"] = function () error("hello") end; ["default"] = function () error("default") end; } -- local i = 6 switch (i) { ["calc!var == 6"] = function () error("var == 6 --> true") end; ["calc!var ~= 6"] = function () error("var ~= 6 --> true") end; ["calc!var > 6"] = function () error("var > 6 --> true") end; -- (...) ["default"] = function () error("default") end; }
  8. Много мороки. Да и смысла нет. Юнити это целый движок для игр. На нем пишут самые разные игры, где нужен огромный размах для возможностей... А МТА - клиент к ГТА СА и достаточно одного, который бы развивался хотяб. UPD: Lua обновляется, но не в МТА. Вот пример возьмем проект STALKER Project, проект долго разрабатывается, хотя если была бы поддержка других языков, возможно на нем уже играли бы игроки... Что я сейчас вижу так только костыли для своих задуманных фишек на основных функциях мало что уникальное сделаешь
  9. Если хотя бы добавить C# или же C++ может и аудитории прибавиться...
  10. Я бы не против кроме Lua ввести и другой язык, ну как в Unity 3D поддержка других языков
  11. А в MTA? Последний раз когда обновили версию Lua?
  12. Согласен пару функции для Lua не помешает, но вроде же его обновляют или мне так кажись?
  13. Можно ли узнать координаты курсора внутри RenderTarget?
  14. iAxel

    [HELP] DxScroll

    Is it possible to find the coordinates of the cursor in RenderTarget? getCursorPosition () is not helping, output is wrong x, y coordinates local sW, sH = guiGetScreenSize() local bW, bH = (sW / 2), (sH / 2) local Box = dxCreateRenderTarget(1019, 560, true) local mX, mY = (1019 / 2), (560 / 2) addEventHandler('onClientRender', root, function () if (isLogged(localPlayer)) then if (isVisible) then --Scrollbar dxDrawRectangle(bW - 197, bH - 279 + offset, 5, 170, tocolor(200, 200, 200, 100)) dxDrawRectangle(bW + 503, bH - 279 + offset, 5, 170, tocolor(200, 200, 200, 100)) --Box dxSetRenderTarget(Box, true) for i = 1, 14 do dxDrawRectangle(0, mY - 345 + 65 * i - offset, 309, 60, tocolor(75, 75, 75, 200)) dxDrawImage(0, mY - 345 + 65 * i - offset, 60, 60, ':guieditor/images/plus.png') dxDrawText('Backpack '..i, mX - 439.5, mY - 324 + 65 * i - offset) dxDrawText(i..'/35', mX - 234.5, mY - 345 + 65 * i - offset) dxDrawRectangle(mX + 190.5, mY - 345 + 65 * i - offset, 309, 60, tocolor(75, 75, 75, 200)) dxDrawImage(mX + 190.5, mY - 345 + 65 * i - offset, 60, 60, ':guieditor/images/plus.png') dxDrawText('Backpack '..i, mX + 260.5, mY - 324 + 65 * i - offset) dxDrawText(i..'/35', mX + 465.5, mY - 345 + 65 * i - offset) end dxSetRenderTarget() dxDrawImage(bW - 509, bH - 280, 1019, 560, Box) end end end )
  15. Прошу прошение если это смахивало на троллинг) честно не хотел)
  16. Блин, вы всегда такие серьезные? Что не так, так сразу друг на друга огрызаетесь хватит уже... Насчет serRuleValue - ну Elengar я думал ты оценишь юмор) но это не как не троль) а так тебе DaKiLLa ответил P.S Возможно я не умею шутит^-^
  17. iAxel

    [HELP] DxScroll

    Thank you of course, but I need a start code to understand how it works, please help me this is really necessary
  18. Вопросы? Спасибо конечно, но не нужно же так грубо
  19. How to do? I need the same thing. To calculate position of the cursor inside RenderTarget
  20. iAxel

    [HELP] DxScroll

    Thanks for the reply
  21. Это уже на какой-то жирнейший тролинг похоже... Еще раз задам вопрос(не тебе, всем), который задавал выше: Где именно результаты setRuleValue видно в сервер-браузере ? Original http://imgur.com/IEUPrPI
×
×
  • Create New...