Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function CG.MessageBox:RenderMessage()
- dxDrawText(self.title, 639, 346, 976, 377, tocolor(0, 0, 0, 255), 0.3, fontManager:GetDTFont(), "center", "center", false, false, true, false, false)
- dxDrawImage(640, 346, 336, 32, "files/images/aero-title.png", 0, 0, 0, tocolor(1, 251, 219, 120), true)
- local width, height;
- if(self.disabled ~= true) then
- width, height = interpolateBetween(336, 0, 0, 336, 204, 0, (getTickCount()-self.startTick)/500, self.easingFunc);
- else
- width, height = interpolateBetween(336, 204, 0, 336, 0, 0, (getTickCount()-self.startTick)/500, self.easingFunc);
- end
- dxDrawRectangle(640, 377, width, height, tocolor(0, 0, 0, 200), true)
- if(getTickCount()-self.startTick > 500) then
- if(self.double) then
- dxDrawText(self.message, 642, 378, 974, 529, tocolor(0, 0, 0, 255), 0.3, fontManager:GetDTFont(), "center", "center", false, true, true, false, false)
- end
- dxDrawText(self.message, 640, 376, 974, 529, self.msgcolor, 0.3, fontManager:GetDTFont(), "center", "center", false, true, true, false, false)
- local a = 120
- if(self.hover) then
- a = 200;
- end
- dxDrawRectangle(740, 539, 136, 33, tocolor(0, 0, 0, a), true)
- dxDrawText(self.option1, 740, 538, 875, 572, tocolor(255, 255, 255, 255), 0.3, fontManager:GetDTFont(), "center", "center", false, false, true, false, false)
- showCursor(true);
- end
- end
- --- --- --
- _dxDrawImage = dxDrawImage
- function dxDrawImage(x, y, w, h, ...)
- x = x/aesx*sx
- y = y/aesy*sy
- w = w/aesx*sx
- h = h/aesy*sy
- return _dxDrawImage(x, y, w, h, ...)
- end
- _dxDrawText = dxDrawText
- function dxDrawText(text, x, y, w, h, color, size, ...)
- x = x/aesx*sx
- y = y/aesy*sy
- w = w/aesx*sx
- h = h/aesy*sy
- size = size/(aesx+aesy)*(sx+sy)
- return _dxDrawText(text, x, y, w, h, color, size, ...)
- end
- _dxDrawRectangle = dxDrawRectangle
- function dxDrawRectangle(x, y, w, h, ...)
- x = x/aesx*sx
- y = y/aesy*sy
- w = w/aesx*sx
- h = h/aesy*sy
- return _dxDrawRectangle(x, y, w, h, ...)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement