CRoW,,# Posted April 25, 2013 Share Posted April 25, 2013 (edited) السلام عليكم ابي اربط Scrollbar بالصوت يعني اذا راح يمين ينقص الصوت واذا راح شمال يزيد الصوت Edited April 26, 2013 by Guest Link to comment
iPrestege Posted April 25, 2013 Share Posted April 25, 2013 onClientGUIScroll setSoundVolume Link to comment
CRoW,,# Posted April 25, 2013 Author Share Posted April 25, 2013 addEventHandler("onClientGUIScroll",getRootElement(),onGuiClick) function () setSoundVolume end ? Link to comment
iPrestege Posted April 25, 2013 Share Posted April 25, 2013 addEventHandler("onClientGUIScroll",ScrollBar, function( ) local Scroll = guiScrollBarGetScrollPosition(ScrollBar) Volume = Scroll / 100 if not isElement( sound ) then return end setSoundVolume(sound,Volume) end,false ) ScrollBar = السكرول حقكـ # sound = المتغير حق الصوت Link to comment
CRoW,,# Posted April 25, 2013 Author Share Posted April 25, 2013 (edited) addEventHandler("onClientGUIScroll",ScrollBar, function( ) local Scroll = guiScrollBarGetScrollPosition(ScrollBar) Volume = Scroll / 100 if not isElement( sound ) then return end setSoundVolume(sound,Volume) end,false ) ScrollBar = السكرول حقكـ # sound = المتغير حق الصوت لو انقز ما كنت سويتهه تسسسلم يعطيك العافيةة Edited April 25, 2013 by Guest Link to comment
فاّرس Posted April 25, 2013 Share Posted April 25, 2013 ^ وش فايده Volume = Scroll / 100 + وش قصه / ? Link to comment
iPrestege Posted April 25, 2013 Share Posted April 25, 2013 ^ وش فايده Volume = Scroll / 100+ وش قصه / ? قسمة ((= Link to comment
فاّرس Posted April 25, 2013 Share Posted April 25, 2013 100 وش هو؟ + كل يوم البرمجه تتعقد Link to comment
iPrestege Posted April 25, 2013 Share Posted April 25, 2013 احداثيات الـ السكرول و الـ 100 نقسمها من احداثيات السكرول و مآشفت شيء لو تشوف الـ math.... تروح Link to comment
CRoW,,# Posted April 25, 2013 Author Share Posted April 25, 2013 100 وش هو؟+ كل يوم البرمجه تتعقد هههه تشوف Link to comment
CRoW,,# Posted April 26, 2013 Author Share Posted April 26, 2013 addEventHandler("onClientGUIScroll",ScrollBar, function( ) local Scroll = guiScrollBarGetScrollPosition(ScrollBar) Volume = Scroll / 100 if not isElement( sound ) then return end setSoundVolume(sound,Volume) end,false ) ScrollBar = السكرول حقكـ # sound = المتغير حق الصوت ضبطت ScrollBar لكن ما عرفت وش يعني متغير الصوت ؟ Link to comment
iPrestege Posted April 26, 2013 Share Posted April 26, 2013 يعني اللي تشغل فية الصوت sound = playSound(...) Link to comment
CRoW,,# Posted April 26, 2013 Author Share Posted April 26, 2013 يعني كذا "1.mp3" سويت كذا بس ما ضبط يخرب المود Link to comment
CRoW,,# Posted April 26, 2013 Author Share Posted April 26, 2013 addEventHandler("onClientGUIScroll",GUIEditor_Scrollbar[1], function( ) local Scroll = guiScrollBarGetScrollPosition(GUIEditor_Scrollbar[1]) Volume = Scroll / 100 if not isElement( "1.mp3" ) then return end setSoundVolume("1.mp3",Volume) end,false ) Link to comment
iPrestege Posted April 26, 2013 Share Posted April 26, 2013 كذآ خطأ !! مثآل : MySound = playSound("1.mp3",true) addEventHandler("onClientGUIScroll",GUIEditor_Scrollbar[1], function( ) local Scroll = guiScrollBarGetScrollPosition(GUIEditor_Scrollbar[1]) Volume = Scroll / 100 if not isElement( MySound ) then return end setSoundVolume(MySound,Volume) end,false ) Link to comment
CRoW,,# Posted April 26, 2013 Author Share Posted April 26, 2013 ادري اني تعبك بس لو ابيه اكثر من صوت Link to comment
iPrestege Posted April 26, 2013 Share Posted April 26, 2013 سوية المتغير واحد مثآل : MySound = playSound(arg) MySound = playSound(arg) وسوي شروط مايكرر .. بـ حيث مآيكون فية مشـاكل نهائيا .. 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