Beispiel #1
0
 private Int32 GetIconType(Int32 id)
 {
     ChocographUI.Icon[] array = new ChocographUI.Icon[]
     {
         ChocographUI.Icon.Field,
         ChocographUI.Icon.Field,
         ChocographUI.Icon.Field,
         ChocographUI.Icon.Field,
         ChocographUI.Icon.Field,
         ChocographUI.Icon.Field,
         ChocographUI.Icon.Reef,
         ChocographUI.Icon.Reef,
         ChocographUI.Icon.Reef,
         ChocographUI.Icon.Reef,
         ChocographUI.Icon.Reef,
         ChocographUI.Icon.Reef,
         ChocographUI.Icon.Mountain,
         ChocographUI.Icon.Mountain,
         ChocographUI.Icon.Mountain,
         ChocographUI.Icon.Mountain,
         ChocographUI.Icon.Sea,
         ChocographUI.Icon.Sea,
         ChocographUI.Icon.Sea,
         ChocographUI.Icon.Sea,
         ChocographUI.Icon.Sky,
         ChocographUI.Icon.Sky,
         ChocographUI.Icon.Sky,
         ChocographUI.Icon.Sky
     };
     return((Int32)array[id]);
 }
Beispiel #2
0
    private String GetIconSprite(ChocographUI.Icon icon)
    {
        switch (icon)
        {
        case ChocographUI.Icon.BoxOpen:
            return("chocograph_box_open");

        case ChocographUI.Icon.BoxDisableOpen:
            return("chocograph_box_open_null");

        case ChocographUI.Icon.BoxClose:
            return("chocograph_box_close");

        case ChocographUI.Icon.BoxDisableClose:
            return("chocograph_box_close_null");

        default:
            return(String.Empty);
        }
    }