- Jan 18, 2021
- 79
- 61
So I finally am trying to add a custom main menu to my game so I figured out how to do it
so that was my early version but then I wanted to do something fancy and have a spotlight highlight each option the spotlight image is 1920 by 1080 but I have no idea how to code it to work since this my first time. The image below is when the mouse is hovering over start.
my code is the issue I know but if anyone can tell me how to properly do it I would appreciate it. my code right now is,
imagebutton auto "gui/mm_start_%s.png" xpos 765 ypos 787 focus_mask True action Start()
which works for a hover and idle sharing the same dimensions but not when you want a spotlight because the dimensions are to different.
so that was my early version but then I wanted to do something fancy and have a spotlight highlight each option the spotlight image is 1920 by 1080 but I have no idea how to code it to work since this my first time. The image below is when the mouse is hovering over start.
my code is the issue I know but if anyone can tell me how to properly do it I would appreciate it. my code right now is,
imagebutton auto "gui/mm_start_%s.png" xpos 765 ypos 787 focus_mask True action Start()
which works for a hover and idle sharing the same dimensions but not when you want a spotlight because the dimensions are to different.