Jump to content
This site uses cookies! Learn More

This site uses cookies!

By continuing to use this site, you agree to allow us to store cookies on your computer. :)


Help with lua / c#

Recommended Posts

Hey,  i am trying to build a quester custom code to load settings while in quest state for people to be able to change them but i am having a hard time, i dont understand where i am doing wrong, any help would be deeply appreciated. Thanks.

                                local X = CreateFrame('Button', 'MyButton', UIParent, 'UIPanelButtonTemplate')
                                X: SetSize(80, 22)-- width, height
                                X: SetText('Button!')
                                X: SetPoint('CENTER')
                                X: SetScript('OnClick', function()
                                " + Settings.CurrentSetting.ToForm(); + "end"));


Share this post

Link to post
Share on other sites

Just... don't. It's anything but easy and you're in way over your head.


Doesn't even have a return type. It's a void type method that opens a WInForm menu in wRobot. I keep telling you, you need to learn the basic of programming and I've linked you courses. Until you actually understand what you're doing instead of just copypasting, you won't get anywhere

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...