BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Static Public Member Functions | Properties | List of all members
BrawlCrate.UI.Icons Class Reference

Static Public Member Functions

static int getImageIndex (ResourceType resResourceFileType)
 

Properties

static ImageList ImageList [get]
 

Member Function Documentation

◆ getImageIndex()

static int BrawlCrate.UI.Icons.getImageIndex ( ResourceType  resResourceFileType)
inlinestatic
179 {
180 int result = ImageList.Images.IndexOfKey(Enum.GetName(typeof(ResourceType), resResourceFileType));
181 return result == -1 ? 0 : result;
182 }
static ImageList ImageList
Definition: Icons.cs:15
ResourceType
Definition: ResourceType.cs:6

Property Documentation

◆ ImageList

ImageList BrawlCrate.UI.Icons.ImageList
staticget
15 {
16 get
17 {
18 if (_imgList == null)
19 {
20 _imgList = new ImageList
21 {
22 ImageSize = new Size(24, 24),
23 ColorDepth = ColorDepth.Depth32Bit
24 };
25 foreach (KeyValuePair<ResourceType, Bitmap> entry in IconDictionary)
26 {
27 _imgList.Images.Add(Enum.GetName(typeof(ResourceType), entry.Key), entry.Value);
28 }
29 }
30
31 return _imgList;
32 }
33 }

The documentation for this class was generated from the following file: