Nem teszteltem, de elvileg jó.Megnyomod a k betűt, a kép felülről \'beúszik\' a képernyő közepére. Image = {};Image.Width = 200;Image.Height = 200;Image.PosX = Display.Width/2 - Image.Width/2;Image.PosY = -Image.Height;Image.IsVisible = false;addEventHandler(\"onClientKey\", root, function(key, state) if (state) then if (key == \"k\") then Image.IsVisible = not Image.IsVisible; if (not Image.IsVisible) then Image.PosY = -Image.Height; end end end end);addEventHandler(\"onClientRender\", root, function() Image.PosY = Image.PosY + 20; if (Image.PosY >= Display.Height/2 - Image.Height/2) then Image.PosY = Display.Height/2 - Image.Height/2; end dxDrawImage(Image.PosX, Image.PosY, Image.Width, Image.Height, \"kép.png\"); end);
Image = {};Image.Width = 200;Image.Height = 200;Image.PosX = Display.Width/2 - Image.Width/2;Image.PosY = -Image.Height;Image.IsVisible = false;addEventHandler(\"onClientKey\", root, function(key, state) if (state) then if (key == \"k\") then Image.IsVisible = not Image.IsVisible; if (not Image.IsVisible) then Image.PosY = -Image.Height; end end end end);addEventHandler(\"onClientRender\", root, function() Image.PosY = Image.PosY + 20; if (Image.PosY >= Display.Height/2 - Image.Height/2) then Image.PosY = Display.Height/2 - Image.Height/2; end dxDrawImage(Image.PosX, Image.PosY, Image.Width, Image.Height, \"kép.png\"); end);
bool dxDrawImage ( float posX, float posY, float width, float height, mixed image, [ float rotation = 0, float rotationCenterOffsetX = 0, float rotationCenterOffsetY = 0, int color = tocolor(255,255,255,255), bool postGUI = false ] )[/quote]