Search found 50 matches

by Rick
08 Apr 2015, 17:01
Forum: General Discussion
Replies: 9
Views: 2043

Re: Is there a generic event for all events?

On the flip side of this, can I add my own tags to the xaml file and query those elements based on these tags? That way I could probably simulate the way you guys are doing codebehinds in C++ but do it in Lua for Leadwerks. Basically what I'm trying to do here is a codebehind idea in Lua for Leadwer...
by Rick
08 Apr 2015, 16:46
Forum: General Discussion
Replies: 9
Views: 2043

Re: Is there a generic event for all events?

How can I loop over all loaded UIElements from a xaml file? Once I have that I assume I can store a list of all event string names and then for each UIElement loop over this event name list calling AddHandler() for each one. Something like: // find all elements in our loaded xaml foreach(UIElement e...
by Rick
08 Apr 2015, 14:45
Forum: General Discussion
Replies: 9
Views: 2043

Re: Is there a generic event for all events?

I'm not finding anything in the API. Does anyone have any ideas if we are able to peak at an event that is about to be fired from the UI and able to see the string event name and string control name?
by Rick
08 Apr 2015, 03:45
Forum: General Discussion
Replies: 9
Views: 2043

Is there a generic event for all events?

I'm actually looking to pass the events in C++ to Lua so ideally I would be able to dynamically hook every controls event in the xaml up to 1 generic event in C++ and be able to get the control name and event name in string form. Is this possible? If I cold get this in C++ from Noesis then I could m...
by Rick
08 Apr 2015, 03:37
Forum: General Discussion
Replies: 3
Views: 1415

Re: Button click delegate for class method

OK had to dig but found some example code and got this sort of working. Gui::Button* Button3; void Button3_OnClick(BaseComponent* sender, const RoutedEventArgs& e); Button3 = uiRenderer->GetXAML()->FindName<Button>("Button3"); Button3->Click() += MakeDelegate(this, &App::Button3_OnClick); void App::...
by Rick
08 Apr 2015, 02:42
Forum: General Discussion
Replies: 3
Views: 1415

Button click delegate for class method

I'm looking to make a C++ class function to handle a button click event (and eventually other things). Is there somewhere to see the event signatures to handle this and how to set this up? I'm not sure how to setup the C++ callback member method and how to assign it. I'm thinking it has something to...
by Rick
08 Apr 2015, 02:20
Forum: General Discussion
Replies: 2
Views: 1044

Re: IResourceSystem

Thank you this helped!
by Rick
08 Apr 2015, 02:19
Forum: General Discussion
Replies: 6
Views: 1606

Re: Leadwerks integration issue

Thank you. I was able to make the changes and have it working now in Leadwerks.
by Rick
07 Apr 2015, 23:55
Forum: General Discussion
Replies: 2
Views: 1044

IResourceSystem

I'm looking at some older code and I find this line but it says there is no IResourceSystem: Noesis::Core::Ptr<Noesis::Resource::ResourceProvider> provider = *new Noesis::Resource::LocalResourceProvider(path.c_str()); // errors on this line NsGetSystem<Noesis::Resource::IResourceSystem>()->AddProvid...
by Rick
07 Apr 2015, 20:45
Forum: General Discussion
Replies: 6
Views: 1606

Leadwerks integration issue

Hey all, New to NOESIS. I'm trying to integrate it with the Leadwerks engine. I was pointed to https://github.com/FourthQuarter/NoesisLeadwerksWrapper for a wrapper. However after setting this up I'm getting an error saying: Error 1 error C1083: Cannot open include file: 'NsResource\IResourceSystem....