Scripts / All cleverererer scripters please check in ;)

Author
Message
Honkeyboy
3D Media Maker
8
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 9th Jan 2018 15:11 Edited at: 9th Jan 2018 16:51
Ok lol my next mission in learning what does what with .lua is getting this to work
I've advanced my survival menu script for the community survival scriptset to now have tabs
now i have to get them working
So could any of you really cleaver scripters point me into how to,
get the mouse on screen
and get it to change the menu to menu 2,3,4,5,6 etc on a mouse click (i am reading up on this but prompters are always best plus it gives you guys sommat to do while we wait on an update) lol
I'm making the other menus up also
then hopefully i will be able to use that knowledge to click on crafted items to use them and maybe start adding some sprites
Cheers guys heres the script up till now and how it looks so far
P.s added ActivateMouse() and DeactivateMouse() to the script but the mouse doesnt show in the menu





NM guys even this old brain has its moments lol here's the start if the new sprite driven menu will post the rest on the survival script post and the buttons workie yay

Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on

Attachments

Login to view attachments
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 9th Jan 2018 18:12
Yes you need to create a sprite and place it at the mouse position.

For buttons you can find the mouse position when it is clicked and if it is in the same area as your desired button then the button is pressed - this is pretty simple with sprites as both mouse position and sprites are done in %.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Honkeyboy
3D Media Maker
8
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 9th Jan 2018 19:20
Thanks m8 think I've got it working quite well now just need to finish it off and add events to the button presses new version showing in the survival scripts wip I've even impressed myself rofl
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on

Login to post a reply

Server time is: 2024-04-26 03:44:35
Your offset time is: 2024-04-26 03:44:35