HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: [Resolved] Extending _GUI  (Read 2297 times)

Aroton

  • General Accounts
  • *
  • Posts: 5
    • View Profile
[Resolved] Extending _GUI
« on: Oct 13, 11, 05:25:31 PM »

Hey,

So I think I must just be missing something. But, I added a class to the dom_editor, which has a parent class of _GUI. Now I was thinking now I can add my own methods and/or override _GUI methods and they would show up when I called: $GUI.method

Well, they aren't showing up in the auto fill, and even though if I right mouse click and click "Go To Definition" it takes me there, it throws an error that it can't find the method whenever I try to use it.

Everything compiles fine, I just get errors when I am actually running the script in game.

Thanks
« Last Edit: Nov 01, 12, 12:01:12 PM by HE-Cooper »
Logged

JMurdick

  • General Accounts
  • *
  • Posts: 54
    • View Profile
Re: Extending _GUI
« Reply #1 on: Oct 13, 11, 05:37:23 PM »

$GUI is a System Node so you'll need to use the System Node Configuration tool to glom your new class onto it.  I think.
Logged

Aroton

  • General Accounts
  • *
  • Posts: 5
    • View Profile
Re: Extending _GUI
« Reply #2 on: Oct 13, 11, 06:12:36 PM »

beautiful, fixed my issue right up!

Thanks!
Logged