2007-10-10, 08:25 AM
Got the code here:
And Skin:
And it keeps dying in here:
with a null reference exception. Any ideas, sub? Anything I should look for?
Code:
for (int i = 0; i < m_items.Count; i++)
{
if (m_items[i].Thumbnail != null)
{
UiSimpleList.Item item = new UiSimpleList.Item();
item.AddProperty("@filename", m_items[i].Thumbnail);
itemList.Add(item);
}
}
And Skin:
Code:
<!-- City -->
<CompositeImage name="SelectionListNormal" size="70,25">
<DrawCommonImage name="ListViewNormalItemBackground"/>
<DrawImage text="@filename" loc="0,0" size="100,100" textStyle="GeneralTextStyle" align="Center" valign="Center"/>
</CompositeImage>
<CompositeImage name="SelectionListSelected" size="70,25">
<DrawCommonImage name="ListViewSelectedItemBackground"/>
<DrawImage text="@filename" loc="0,0" size="100,100" textStyle="GeneralTextStyle" align="Center" valign="Center"/>
</CompositeImage>
<CompositeImage name="SelectionListSelectedInactive" size="70,25">
<DrawCommonImage name="ListViewSelectedInactiveItemBackground"/>
<DrawImage text="@filename" loc="0,0" size="100,100" textStyle="GeneralTextStyle" align="Center" valign="Center"/>
</CompositeImage>
And it keeps dying in here:
Code:
protected override ArrayList getPostBackgroundRenderList()
{
ArrayList renderList = new ArrayList();
renderList.AddRange(selectionUIList.GetRenderList());
return renderList;
}
with a null reference exception. Any ideas, sub? Anything I should look for?