Posted June 10, 2022 by Dragonite
Emu 2 ended up not really being my main focus since I made that post a little while ago, but I’m still touching it up here and there where I (or other people) think something could use a change.
The biggest addition here is probably the Debug Draw, which lets you see the bounds of elements for debugging purposes. See the attached screenshot for what it looks like. To display it, pass a third argument to any Render
methods you call yourself, eg container.Render(x, y, true)
.
Another method that I’ve been using a lot of myself is EmuList::GetSelectedItem()
, which returns the currently-selected item (or undefined
) in a list. This saves you from having to write out
var index = list.GetSelection();
var data = array[index];
and allows you do condense that down into
var data = list.GetSelectedItem();
The documentation is starting to get rather out-of-date. I should probably take some time to run through that in the near future.
Additions:
entries
propertyBugs fixed: