hey, funktioniert dieser Teil nicht mehr irgendwie richtig?
bei mir passiert da gar nichts.
Ich möchte das Bild nach vorn oder hinten beugen.
Sind diese Arguments richtig?
- rotationCenterOffsetX: the absolute X offset from the image center for which to rotate the image from.
- rotationCenterOffsetY: the absolute Y offset from the image center for which to rotate the image from.
_____________________________________________________________________________
https://wiki.multitheftauto.com/wiki/DxDrawImage
Beispiel....
Lua
local screenWidth,screenHeight = guiGetScreenSize() -- Get screen resolution.
function renderDisplay ( )
local seconds = getTickCount() / 1000
local angle = math.sin(seconds) * 80
-- This will draw the graphic file 'arrow.png' at the top middle of the screen
-- using the size of 100 pixels wide, and 240 pixels high.
-- The center of rotation is at the top of the image.
dxDrawImage ( screenWidth/2 - 50, 0, 100, 240, 'arrow.png', angle, 0, -120 )
end
function HandleTheRendering ( )
addEventHandler("onClientRender", root, renderDisplay) -- Keep everything visible with onClientRender.
end
addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering)
Alles anzeigen