Ders Sahibi


BARİSERDOGAN

Oluşturma Tarihi: 22.09.2019

Bu ders size yardımcı oldumu?

Evet (1) (0) Hayır

DxDrawText

  • Söz Dizimi
bool dxDrawText ( string text, float leftX, float topY [, float rightX = leftX, float bottomY = topY, int color = white, float scaleXY = 1.0 [, float scaleY = 1.0 ],
                  mixed font = "default", string alignX = "left", string alignY = "top", bool clip = false, bool wordBreak = false,
                  bool postGUI = false, bool colorCoded = false, bool subPixelPositioning = false,
                  float fRotation = 0.0, float fRotationCenterX = 0.0, float fRotationCenterY = 0.0 ] )

 

  • Client Kod
local screenWidth, screenHeight = guiGetScreenSize ( ) 


function createText ( )
    local playerX, playerY, playerZ = getElementPosition ( localPlayer )      
    local playerZoneName = getZoneName ( playerX, playerY, playerZ )      

    dxDrawText ( "Merhaba ", 44, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "pricedown" )
end

function HandleTheRendering ( )
    addEventHandler ( "onClientRender", root, createText ) 
end

addEventHandler ( "onClientResourceStart", resourceRoot, HandleTheRendering )

 

Not* Ekrana Sadece Yazı Ekler.