About Store Forum Documentation Contact
Donations:
327$/mo



Post Reply 
gui.ms()
Author Message
1991mirec Offline
Member

Post: #1
gui.ms()
hi

is there a way to use gui.ms() in conditional statement and it would compare everything that s under the mouse..
so for example i have made a guiImage with some image and another one on the same place with same parameters and i have put some picture with alpha background on the second one. and i want to do
if(Gui.ms() == bottom guiImage)

It doesn t want to take the bottom one it reacts just on the top one if i change it which i understand why but is there a way so it would react on the bottom one and the top one would be still there??
01-30-2015 06:27 PM
Find all posts by this user Quote this message in a reply
Zervox Offline
Silver Supporter

Post: #2
RE: gui.ms()
I don't really understand why you would need two buttons at the same time both being rendered at the same positon, but you can do

Code:
topimage.hide();
if(Gui.ms()==bottomimage)
{

}

topimage.show();
(This post was last modified: 01-30-2015 06:38 PM by Zervox.)
01-30-2015 06:37 PM
Find all posts by this user Quote this message in a reply
Post Reply