public GItemListScroller(int x, GItemList owner, int offset) : base(x, 0x3b, 12, 0x13, null) { this.m_Owner = owner; this.m_Offset = offset; this.m_Last = -1234.56; }
public GItemListEntry(int x, AnswerEntry entry, GItemList owner) : base(x, 0x2d) { this.m_Entry = entry; this.m_Owner = owner; int hue = entry.Hue; if (hue > 0) { hue++; } this.m_Hue = Hues.GetItemHue(entry.ItemID, hue); this.m_Image = this.m_Hue.GetItem(entry.ItemID); if ((this.m_Image != null) && !this.m_Image.IsEmpty()) { this.m_Draw = true; this.m_Height = 0x2f; int num2 = (this.m_Image.xMax - this.m_Image.xMin) + 1; this.m_Width = 0x2f; if (num2 > this.m_Width) { this.m_Width = num2; } this.m_ImageOffsetX = ((this.m_Width - ((this.m_Image.xMax - this.m_Image.xMin) + 1)) / 2) - this.m_Image.xMin; this.m_ImageOffsetY = ((this.m_Height - ((this.m_Image.yMax - this.m_Image.yMin) + 1)) / 2) - this.m_Image.yMin; } }