3NAD Posted May 15, 2013 Share Posted May 15, 2013 هذي الوظيفة راح تغير احداثيات الليبل Ex.: function centerLabel ( label, x, y ) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(label,false) local x,y = (screenW-windowW)/x,(screenH-windowH)/y guiSetPosition(label,x,y,false) end نحط الوظيفة بـ أول الملف ثم نطبق علاها .. theLabel = guiCreateLabel ( ....... ) centerLabel ( theLabel, 2, 2 ) 2 = وسط الشاشة انت جرب وبعدين رد Link to comment
iPrestege Posted May 15, 2013 Share Posted May 15, 2013 من خيارات الايديتور : Relative بس مافية للدي اكس انت سويها زر واستخرج الاحداثيات وبس ( = Link to comment
3ssol Posted May 15, 2013 Author Share Posted May 15, 2013 الحين سويت كذا function centerLabel ( label, x, y ) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(label,false) local x,y = (screenW-windowW)/x,(screenH-windowH)/y guiSetPosition(label,x,y,false) end GUIEditor = { label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.label[1] = guiCreateLabel(63, 531, 123, 21, "Players in Marker : ", false) guiSetFont(GUIEditor.label[1], "clear-normal") guiLabelSetColor(GUIEditor.label[1], 235, 75, 19) centerLabel ( GUIEditor.label[1], 2, 2 ) end ) المشكله خط البل صغغير مو واضح Link to comment
jafar Posted May 15, 2013 Share Posted May 15, 2013 اذا تبي تسوي خط جديد guiCreateFont أو جرب ذا الخط اوضح خط بالنسبة لي default-bold-small Link to comment
3ssol Posted May 15, 2013 Author Share Posted May 15, 2013 جعفر حااولت فيها بس صعبه هاذي مادري كيف اسوي خط منها Link to comment
iPrestege Posted May 15, 2013 Share Posted May 15, 2013 local TheFont = guiCreateFont ( "FilePath.ttf",Size ) guiSetFont ( element,TheFont ) Link to comment
3ssol Posted May 15, 2013 Author Share Posted May 15, 2013 برستيج اعرف لـ ذي بس من وين يجيبون الملف الي يجي داخله الخط Link to comment
jafar Posted May 15, 2013 Share Posted May 15, 2013 برستيج اعرف لـ ذيبس من وين يجيبون الملف الي يجي داخله الخط انت تسوي وفي ف النت وموجود خطوط بالمودات Link to comment
3ssol Posted May 15, 2013 Author Share Posted May 15, 2013 موقعك معقد شوي ي برستيج مادري كيف اجيب الخط الي ابيه Link to comment
iPrestege Posted May 15, 2013 Share Posted May 15, 2013 من اليمين Download for windows . Link to comment
3ssol Posted May 15, 2013 Author Share Posted May 15, 2013 يب شفتها بس الخطوط مو الي انا ابيها انا ابي خط زي خط الـ Dx كبير وواضح Link to comment
iPrestege Posted May 15, 2013 Share Posted May 15, 2013 تقدر تدور الخط بالنت عن طريقة اسمة وتحط الحجم اللي تبية ؟! Link to comment
3NAD Posted May 15, 2013 Share Posted May 15, 2013 مثآل الخط ذا http://www.mediafire.com/?811udodccum1dzh تضيفه للميتا src="font.ttf" /> ثم تطبق علاه font = guiCreateFont ( "font.ttf", 15 ) 15 = الحجم guiSetFont ( label, font ) Link to comment
3ssol Posted May 15, 2013 Author Share Posted May 15, 2013 طيب حلوو ضبط الخط Thnks 3NAD بس الحين نبي البل يطلع كم واحد داخل الماركر Link to comment
3ssol Posted May 15, 2013 Author Share Posted May 15, 2013 GUIEditor = { label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.label[1] = guiCreateLabel(112,539,199,24, "Players in Marker : ", false) guiSetFont(GUIEditor.label[1], "clear-normal") guiLabelSetColor(GUIEditor.label[1], 235, 75, 19) font = guiCreateFont ( "font.ttf", 15 ) guiSetFont ( GUIEditor.label[1], font ) guiSetText ( GUIEditor.label[1] , getPlayersInMarker(marker) ) end ) ماضبط :\ Link to comment
3NAD Posted May 15, 2013 Share Posted May 15, 2013 guiSetText ( GUIEditor.label[1] , getPlayersInMarker(marker) ) خله بلحاله مع تآيمر setTimer Link to comment
iPrestege Posted May 15, 2013 Share Posted May 15, 2013 اممم الكلنت رندر راح يكون افضل : onClientRender Link to comment
3ssol Posted May 15, 2013 Author Share Posted May 15, 2013 GUIEditor = { label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.label[1] = guiCreateLabel(112,539,199,24, "Players in Marker : ", false) guiSetFont(GUIEditor.label[1], "clear-normal") guiLabelSetColor(GUIEditor.label[1], 235, 75, 19) font = guiCreateFont ( "font.ttf", 15 ) guiSetFont ( GUIEditor.label[1], font ) end ) setTimer ( function () guiSetText ( GUIEditor.label[1] , getPlayersInMarker(marker) ) end,500,1) ماضبط Link to comment
3NAD Posted May 15, 2013 Share Posted May 15, 2013 getPlayersInMarker = ?? ماشوف لها وظيفة Link to comment
3ssol Posted May 15, 2013 Author Share Posted May 15, 2013 طيب حذفته GUIEditor = { label = {} } function() GUIEditor.label[1] = guiCreateLabel(112,539,199,24, "Players in Marker : ", false) guiSetFont(GUIEditor.label[1], "clear-normal") guiLabelSetColor(GUIEditor.label[1], 235, 75, 19) font = guiCreateFont ( "font.ttf", 15 ) guiSetFont ( GUIEditor.label[1], font ) end setTimer ( function () guiSetText ( GUIEditor.label[1] , getPlayersInMarker(marker) ) end,9,1) وخرب كله Link to comment
3ssol Posted May 15, 2013 Author Share Posted May 15, 2013 لها وضيفه بل سيرفر ولا لازم ترايقر ؟ Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now