These are chat archives for ZaneDubya/UltimaXNA

10th
Jul 2015
Zane Wagner
@ZaneDubya
Jul 10 2015 16:35
@jeffboulanger haha, what were you working on?
I think we've talked about micosoft's apis before...
Jeff Boulanger
@jeffboulanger
Jul 10 2015 16:36
oh i used my game programming knowledge to do GDI+ animations :) Matrix math and such. They wanted to use images, and switch them out like a drawn animation but it was choppy
Zane Wagner
@ZaneDubya
Jul 10 2015 16:36
I've heard they're pushing "universal apps" now.
Jeff Boulanger
@jeffboulanger
Jul 10 2015 16:36
ya thats what i work on primarily
but they needed help on our winforms app
universal apps are very cool
Zane Wagner
@ZaneDubya
Jul 10 2015 16:36
Some of the win10 apps are universal - the settings app is for sure. I love the reactive layout.
Jeff Boulanger
@jeffboulanger
Jul 10 2015 16:37
ya, its all XAML
and databinding
databinding is how i setup the settings stuff you didnt like ;)
INotifyPropertyChanged
Zane Wagner
@ZaneDubya
Jul 10 2015 16:39
On a similar note, I still have no idea how events should be used. I'm just kinda futzing around with them. For example - do I need to unhook events from child controls when disposing of the parent gump?
Jeff Boulanger
@jeffboulanger
Jul 10 2015 16:42
if the parent is disposed, the children should be disposed to
if those children hooked events to the parent
they need to unhook
any hook, when not being used anymore, should be unhooked
memory leaks will occur otherwise
Zane Wagner
@ZaneDubya
Jul 10 2015 16:44
So they don't dispose automagically? crap.
Good to know, though...
Jeff Boulanger
@jeffboulanger
Jul 10 2015 16:44
no
;)
C# still requires cleanup
contrary to believe
lol
Zane Wagner
@ZaneDubya
Jul 10 2015 16:46
but but but garbage collection! ;)
Fair enough. I'll do my best to be better about these things.
Jeff Boulanger
@jeffboulanger
Jul 10 2015 16:46
GC only gets called when no references exist to an object
+= is a reference
its a strong reference
thats why i was telling you the LoginGump had issues because it never -= the button events
this is how i re-write it on my branch to fix a lot of that stuff (and to simplify it by not having that Update state checking
Zane Wagner
@ZaneDubya
Jul 10 2015 17:02
I'll definitely take a look at that! Dad's in town this week (non-stop family visits since late June!), but I'll be getting back into UXNA soonish.
Thanks jeff
Jeff Boulanger
@jeffboulanger
Jul 10 2015 17:06
cool deal, family first ;) have fun!