السلام عليكم شباب
انا بجرب اعمل زر بيتغير لونه فى لوحه دى اكس
عوز لما اشاور على الكلمه اللونه يتغير
دلوقتى انا لما بشاور على الكلمه اللون بيتغير تمام ..
بس دلوقتى لما بشاور فى ايه حته ف اللوحه لون الكلمه بيتغير انا عاوز لما اشاور على الكلمه بس لونو يتغير مش لما اشاور ف كل حته
وشكرا
function cursorPosition(x, y, w, h)
if (not isCursorShowing()) then
return false
end
local mx, my = getCursorPosition()
local fullx, fully = guiGetScreenSize()
cursorx, cursory = mx*fullx, my*fully
if cursorx > x and cursorx < x + w and cursory > y and cursory < y + h then
return true
else
return false
end
end
------
function pro()
dxDrawRectangle(382, 327, 492, 230, tocolor(0, 0, 0, 126), true)
if(cursorPosition(587, 428, 681, 454))then----عند لمس الزر
dxDrawText("Kill", 587, 428, 681, 454, tocolor(255, 0, 0, 255), 1.00, "bankgothic", "left", "top", true, true, true, true, true)
else
dxDrawText("Kill", 587, 428, 681, 454, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", true, true, true, true, true)
end
end