Jump to content

Recommended Posts

Posted

Hello again.

 

First of all, I'm sorry, I may come off as a dumbo. I just can't seem to figure this out.

 

What I'm trying to do, is to allow a person to access coordinates through a config-file. These Coordinates should be used in the rectangle I'm making in the"EventHandlerCommon" class. I've been goofing around, but before I did so, I had the coordinates hardcoded in, and it worked without problems.

 

So I guess what I'm asking is, how do I use the ints set in my config files, when creating my rectangle? And do I need another update to do so?

 

Main class:

 

  Reveal hidden contents

 

 

EventHandler:

 

  Reveal hidden contents

 

 

ConfigurationThing:

 

  Reveal hidden contents

 

 

GuiFactory

 

  Reveal hidden contents

 

 

ConfigGui:

 

  Reveal hidden contents

 

 

 

And here's what the config looks like after running the code

 

  Reveal hidden contents

 

 

Again, I know some of the stuff I've tried in the given code above, is stupid. This is after I've tried, what I thought made sense, and then just mindlessly trying in hopes that something would work.

 

I can't really figure out how this works, and that's what I'd like to have explained, not how bad my code is, or that what I've written is stupid.

 

I hope you can understand what I'm trying to do, otherwise, let me know

 

Thanks a ton!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.