0 Üye ve 1 Ziyaretçi konuyu incelemekte.
addEventHandler ("onClientMouseLeave", root,function ()if source == GUIEditor.label[6] thenguiSetAlpha(GUIEditor.label[6], 1)endend)addEventHandler ("onClientMouseEnter", root,function ()if source == GUIEditor.label[6] thenguiSetAlpha(GUIEditor.label[6], 0.5)endend)
Arkadaşlar bu kodları freeroam panel labellerine nasıl uygularımKod: luaaddEventHandler ("onClientMouseLeave", root,function ()if source == GUIEditor.label[6] thenguiSetAlpha(GUIEditor.label[6], 1)endend)addEventHandler ("onClientMouseEnter", root,function ()if source == GUIEditor.label[6] thenguiSetAlpha(GUIEditor.label[6], 0.5)endend)
Ama freeroam panelde öle guicradelabel yok farklı bişe yapmışlar
{'btn', id='kill', onclick=killLocalPlayer},
addEventHandler ("onClientMouseLeave", root,function ()if source == getControl(wndMain, "kill") thenguiSetAlpha(getControl(wndMain, "kill"), 1)endend) addEventHandler ("onClientMouseEnter", root,function ()if source == getControl(wndMain, "kill") thenguiSetAlpha(getControl(wndMain, "kill"), 0.5)endend)
Kod: luaaddEventHandler ("onClientMouseLeave", root,function ()if source == getControl(wndMain, "kill") thenguiSetAlpha(getControl(wndMain, "kill"), 1)endend) addEventHandler ("onClientMouseEnter", root,function ()if source == getControl(wndMain, "kill") thenguiSetAlpha(getControl(wndMain, "kill"), 0.5)endend)Örnekte verdiğin kill btn :c label yapmak için ayrı bi label eklemlisin butona