public void Init(Transform parent) { m_transform = transform; m_transform.parent = parent; m_transform.localPosition = Vector3.zero; m_transform.localScale = Vector3.one; m_groupArray = new GameObject[(int)GROUP_TYPE.END]; m_iconArray = new UIIcon[(int)ICON_TYPE.END]; m_directionArray = new CDirection[(int)DIRECTION_TYPE.END]; string[] groupPathArray = { "UserGroup", "FriendGroup" }; for (int i = 0; i < groupPathArray.Length; i++) { m_groupArray[i] = m_transform.FindChild(groupPathArray[i]).gameObject; } string[] iconPathArray = { "UserGroup/GroupMenuButton", "UserGroup/FriendButton", "UserGroup/EplayButton", "UserGroup/TownButton", "UserGroup/CollectButton", "UserGroup/AchieveButton", "UserGroup/RankingButton", "UserGroup/ClothShopButton", "UserGroup/InteriorShopButton", "UserGroup/DogBookButton", "UserGroup/BreedButton", "UserGroup/DogInfoButton", "UserGroup/InventoryButton", "UserGroup/DesireRewardButton", "UserGroup/BasicShopButton", "UserGroup/TownSelectButton", "UserGroup/ReturnHomeButton", "UserGroup/TownGroupMenu/Town01", "UserGroup/TownGroupMenu/Town02", "FriendGroup/FriendButton", "FriendGroup/DogInfoButton", "FriendGroup/Town01", "FriendGroup/Town02", "FriendGroup/ReturnHomeButton", "FriendGroup/TownSelectButton" }; for (int i = 0; i < iconPathArray.Length; i++) { m_iconArray[i] = new UIIcon(m_transform.FindChild(iconPathArray[i]).gameObject, (ICON_TYPE)i, OnButtonClick); } m_directionArray[(int)DIRECTION_TYPE.UI] = m_transform.GetComponent <CDirection>(); m_directionArray[(int)DIRECTION_TYPE.GROUP] = m_transform.FindChild("UserGroup/TownGroupMenu").GetComponent <CDirection>(); StartCoroutine(OnOffMenuGroup(false, true)); StartCoroutine(OnOffExtendMenuGroup(false, true)); }
private IEnumerator WaitForTownOpenEffect(UIIcon icon) { m_isCloseLock = true; SoundManager.instance.PlayAudioClip("UI_Opentown"); GameObject effect = Instantiate(AssetBundleEx.Load <GameObject>("[Prefabs]/[Effects]/FX_town_building_open")) as GameObject; effect.transform.position = icon.GetTransform.position; Util.SetGameObjectLayer(effect, LayerMask.NameToLayer("UIEffect")); yield return(new WaitForSeconds(1.5f)); icon.Update(); DestroyImmediate(effect); switch (StateManager.instance.m_curStateType) { case STATE_TYPE.STATE_ROOM: break; case STATE_TYPE.STATE_VILLAGE: GUIManager_Village guiVillage = ((State_Village)StateManager.instance.m_curState).m_guiVillageManager; guiVillage.HIdeAndLockUI(); yield return(new WaitForSeconds(0.5f)); break; } m_isCloseLock = false; NetworkManager.instance.SendTownEnter(WorldManager.instance.m_player.m_lastTown); }
public virtual string Places(UIIcon index) { switch (index) { case UIIcon.PlacesRecentDocuments: { // Default = "Recent Documents" return(Environment.GetFolderPath(Environment.SpecialFolder.Recent)); } case UIIcon.PlacesDesktop: { // Default = "Desktop" return(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory)); } case UIIcon.PlacesPersonal: { // Default = "My Documents" return(Environment.GetFolderPath(Environment.SpecialFolder.Personal)); } case UIIcon.PlacesMyComputer: { // Default = "My Computer" return(Environment.GetFolderPath(Environment.SpecialFolder.MyComputer)); } case UIIcon.PlacesMyNetwork: { // Default = "My Network Places" return("/tmp"); } default: { throw new ArgumentOutOfRangeException("index", index, "Unsupported place"); } } }
public void GetMenuItemDataModel( MenuCode menuCode, MsgCode msgCode, UIIcon iconCode, string padding, Action <MenuItemDataModel> onSuccess, Action <MenuItemDataModel> onError) { WrapErr.ToErrReport(9999, () => { ErrReport report; WrapErr.ToErrReport(out report, 9999, () => { onSuccess(new MenuItemDataModel() { Code = menuCode, Display = this.GetText(msgCode), IconSource = this.IconSource(iconCode), Padding = padding, }); }); if (report.Code != 0) { WrapErr.SafeAction(() => { onError.Invoke(new MenuItemDataModel() { Code = menuCode, Display = "**NA**", IconSource = "", Padding = padding, }); }); } }); }
// ---------------------------------------------------------------- // public void create() { this.start_icon = this.tool_gui.createForestIcon(); this.end_icon = this.tool_gui.createForestIcon(); this.start_icon.setVisible(false); this.end_icon.setVisible(false); }
public override BUSIcon UIToBusiness(UIIcon UIEntity, TContext context, IViewInfo viewInfo, bool isNewRecord) { BUSIcon businessEntity = base.UIToBusiness(UIEntity, context, viewInfo, isNewRecord); businessEntity.ImgPath = UIEntity.ImgPath; businessEntity.CssClass = UIEntity.CssClass; return(businessEntity); }
public override UIIcon BusinessToUI(BUSIcon businessEntity) { UIIcon UIEntity = base.BusinessToUI(businessEntity); UIEntity.ImgPath = businessEntity.ImgPath; UIEntity.CssClass = businessEntity.CssClass; return(UIEntity); }
// 『ジャンプ』アイコンを作る. public UIIcon createJumpIcon() { UIIcon icon = GameObject.Instantiate(this.uiJumpIconPrefab).GetComponent <UIIcon>(); icon.GetComponent <RectTransform>().SetParent(this.uiCanvas.GetComponent <RectTransform>()); return(icon); }
public IconDataModel GetIcon(UIIcon code) { return(new IconDataModel() { Code = code, IconSource = string.Empty, Padding = string.Empty, }); }
public static ImageSource GetImageSource(UIIcon code) { Image i = new Image() { Source = App.Wrapper.IconSource(code) }; return(i.Source); }
/// <summary>Get the source from factory directly if in design mode or from DI</summary> /// <param name="code">The icon identifier code </param> /// <returns>String with icon path</returns> public static string Source(UIIcon code) { if (System.ComponentModel.LicenseManager.UsageMode == System.ComponentModel.LicenseUsageMode.Designtime) { string result = IconBinder.designFactory.GetIcon(code).IconSource as string; return(result != null ? result : ""); } return(string.Format("{0}{1}", GetIconPrefix(), DI.Wrapper.IconSource(code))); }
public void AddCommand(string text, ICommand command, UIIcon icon) { DockPanel.Add <Button>(x => { x.ToIconButton(icon, command).Text(text); x.VerticalAlignment = VerticalAlignment.Stretch; x.HorizontalAlignment = HorizontalAlignment.Right; }); }
private static string Source(UIIcon code) { // TODO Set copy in factory project so we can access the strings directly //return "icons8_checkmarkSmall.png"; if (App.IsRunning) { return(App.Wrapper.IconSource(code)); } return(factory.GetIcon(code).IconSource as string); }
static public MenuItem apply_icon(this MenuItem item, UIIcon icon) { var image = new Image(); image.Width = 16; image.Height = 16; image.apply_icon(icon); item.Icon = image; return(item); }
static public void apply_icon(this Image image, UIIcon icon) { image.Tag = icon; var source = new BitmapImage(); source.BeginInit(); source.StreamSource = icon.ImageStream(); source.EndInit(); image.Source = source; }
private CommMedialDisplay CommItem(string name, UIIcon icon, CommMedium mediumType) { return(new CommMedialDisplay() { Display = name, IconHeight = 16, IconWidth = 16, IconSource = this.IconSource(icon), MediumType = mediumType }); }
private CommHelpDisplay HelpItem(string name, UIIcon icon, CommMedium helpType) { return(new CommHelpDisplay() { Display = name, HelpType = helpType, IconHeight = 16, IconWidth = 16, IconSource = this.IconSource(icon), }); }
private void AddItem(MenuCode menuCode, string display, UIIcon uIIcon, string padding) { MenuItemDataModel dataModel = new MenuItemDataModel() { Code = menuCode, Display = display, IconSource = IconBinder.Source(uIIcon), Padding = padding, }; this.items.Add(dataModel); }
public override void Setup() { base.Setup(); itemName = new UILabel(new Vector2(5, 28), _UIManager); itemName.LoadContent("Fipps"); AddChild(itemName); ItemIcon = new UIIcon(_UIManager); ItemIcon.LoadContent("Nulltexture"); nullTex = ItemIcon._Texture; ItemIcon.OffsetPos = new Vector2(22, 10); AddChild(ItemIcon); }
public void FindUICanvas() { UICanvas UIcanvas = GameObject.FindGameObjectWithTag("UICanvas").GetComponent <UICanvas>(); UIStat = UIcanvas.stat.GetComponent <UIStat>(); UIIcon = UIcanvas.icon.GetComponent <UIIcon>(); UISkill = UIcanvas.skill.GetComponent <UISkill>(); UIRecall = UIcanvas.recall; UIRightTop = UIcanvas.rightTopUI.GetComponent <UIRightTop>(); isUICanvasFind = true; chatFunction = GameObject.FindGameObjectWithTag("ChatManager").GetComponentInChildren <ChatFunction>(); csTextPool = GameObject.FindGameObjectWithTag("CSText").GetComponent <CsTextPool>(); }
static public ButtonExpression ToIconButton(this ButtonBase button, UIIcon icon) { button.ClickMode = ClickMode.Release; var image = button.Content as Image; if (image == null) { image = new Image(); button.Content = image; image.Width = 25; image.Height = 25; } image.apply_icon(icon); return(new ButtonExpression(button)); }
private void IconInfo(UIIcon code, Action <IconDataModel> onSuccess, Action <string> onError) { ErrReport report; WrapErr.ToErrReport(out report, 9999, () => string.Format("No icon for {0}", code), () => { onSuccess.Invoke(this.iconFactory.GetIcon(code)); }); if (report.Code != 0) { WrapErr.SafeAction(() => { onError(string.Format("Unhandled error retrieving icon {0}", code)); }); } }
public string IconSource(UIIcon code) { ErrReport report; string source = WrapErr.ToErrReport(out report, 9999, () => string.Format(""), () => { string tmp = ""; this.IconInfo(code, (info) => { tmp = info.IconSource as string; WrapErr.ChkVar(tmp, 9999, () => string.Format("No source string for {0}", code)); WrapErr.ChkTrue(tmp.Length > 0, 9999, () => string.Format("0 length source string for {0}", code)); }, (msg) => { tmp = ""; }); return(tmp); }); return(report.Code == 0 ? source : ""); }
public virtual Image Images(UIIcon index, int size) { switch (index) { case UIIcon.PlacesRecentDocuments: return(GetSizedResourceImage("document-open.png", size)); case UIIcon.PlacesDesktop: return(GetSizedResourceImage("user-desktop.png", size)); case UIIcon.PlacesPersonal: return(GetSizedResourceImage("user-home.png", size)); case UIIcon.PlacesMyComputer: return(GetSizedResourceImage("computer.png", size)); case UIIcon.PlacesMyNetwork: return(GetSizedResourceImage("folder-remote.png", size)); // Icons for message boxes case UIIcon.MessageBoxError: return(GetSizedResourceImage("dialog-error.png", size)); case UIIcon.MessageBoxInfo: return(GetSizedResourceImage("dialog-information.png", size)); case UIIcon.MessageBoxQuestion: return(GetSizedResourceImage("dialog-question.png", size)); case UIIcon.MessageBoxWarning: return(GetSizedResourceImage("dialog-warning.png", size)); // misc Icons case UIIcon.NormalFolder: return(GetSizedResourceImage("folder.png", size)); default: { throw new ArgumentException("Invalid Icon type requested", "index"); } } }
public static Sprite GetIcon(string path) { #if UNITY_EDITOR && !RECOURCE_CLIENT Sprite sp = UnityEditor.AssetDatabase.LoadAssetAtPath <Sprite>("Assets/UI_Icons/" + path + ".png"); if (sp != null) { return(sp); } Debugger.LogError(" can't find icon : " + path); return(null); #endif GameObject go = ResourceLoader.Load <GameObject>("UI/Icons/" + path + ".prefab"); if (go != null) { UIIcon icon = go.GetComponent <UIIcon>(); if (icon != null) { return(icon.sprite); } } return(null); }
//[MenuItem("UI/Create Icons")] public static void CreateUIIcons() { string rootFloder = Application.dataPath + "/UI_Icons/"; if (!Directory.Exists(rootFloder)) { return; } string targetFloder = Application.dataPath + "/Resources/UI/Icons/"; if (!Directory.Exists(targetFloder)) { Directory.CreateDirectory(targetFloder); } List <string> lastnames = new List <string>(); DirectoryInfo last = new DirectoryInfo(targetFloder); FileInfo[] pfbs = last.GetFiles("*.prefab", SearchOption.AllDirectories); foreach (FileInfo pfb in pfbs) { string name = pfb.FullName.Substring(targetFloder.Length); name = name.Substring(0, name.IndexOf(".")); name = name.Replace("\\", "/"); lastnames.Add(name); } DirectoryInfo dir = new DirectoryInfo(rootFloder); FileInfo[] files = dir.GetFiles("*.png", SearchOption.AllDirectories); foreach (FileInfo file in files) { string assetPath = file.FullName.Substring(Application.dataPath.IndexOf("Assets")); assetPath = assetPath.Replace("\\", "/"); string subpath = assetPath.Substring("Assets/UI_Icons/".Length); subpath = subpath.Substring(0, subpath.IndexOf(".")); lastnames.Remove(subpath); string old = File.ReadAllText(file.FullName + ".meta"); File.Move(file.FullName + ".meta", file.FullName + ".meta.old"); YamlSerializer serializer = new YamlSerializer(); object[] rsl = serializer.Deserialize(old); Dictionary <object, object> settings = rsl[0] as Dictionary <object, object>; string createTime = settings["timeCreated"].ToString(); Dictionary <object, object> TextureImporter = settings["TextureImporter"] as Dictionary <object, object>; string an = ""; string av = ""; if (TextureImporter != null) { an = TextureImporter["assetBundleName"] == null ? "" : TextureImporter["assetBundleName"].ToString(); av = TextureImporter["assetBundleVariant"] == null ? "" : TextureImporter["assetBundleVariant"].ToString(); } string guid = AssetDatabase.AssetPathToGUID(assetPath); string tagName = "Icons/" + subpath; string meta = metastring.Replace("#GUID#", guid); meta = meta.Replace("#TC#", createTime); meta = meta.Replace("#WM#", "1"); meta = meta.Replace("#SPX#", "0"); meta = meta.Replace("#SPY#", "0"); meta = meta.Replace("#SBX#", "0"); meta = meta.Replace("#SBY#", "0"); meta = meta.Replace("#SBZ#", "0"); meta = meta.Replace("#SBW#", "0"); meta = meta.Replace("#PT#", tagName); meta = meta.Replace("#AN#", an); meta = meta.Replace("#AV#", av); try { File.WriteAllText(file.FullName + ".meta", meta, System.Text.Encoding.Default); } catch (System.Exception ex) { Debug.LogError(ex); File.Copy(file.FullName + ".meta.old", file.FullName + ".meta", true); } File.Delete(file.FullName + ".meta.old"); AssetDatabase.Refresh(); string floder = Path.GetDirectoryName(targetFloder + subpath); if (!Directory.Exists(floder)) { Directory.CreateDirectory(floder); } string pfbName = "Assets/Resources/UI/Icons/" + subpath + ".prefab"; Sprite sp = AssetDatabase.LoadAssetAtPath <Sprite>(assetPath); GameObject go = AssetDatabase.LoadAssetAtPath <GameObject>(pfbName); if (go == null) { go = new GameObject(); UIIcon icon = go.AddComponent <UIIcon>(); icon.sprite = sp; PrefabUtility.CreatePrefab(pfbName, go); DestroyImmediate(go); } else { GameObject go2 = PrefabUtility.InstantiatePrefab(go) as GameObject; UIIcon icon = go2.GetComponent <UIIcon>(); if (icon == null) { icon = go2.AddComponent <UIIcon>(); icon.sprite = sp; PrefabUtility.ReplacePrefab(go2, go, ReplacePrefabOptions.ConnectToPrefab); } else if (icon.sprite != sp) { icon.sprite = sp; PrefabUtility.ReplacePrefab(go2, go, ReplacePrefabOptions.ConnectToPrefab); } DestroyImmediate(go2); } } foreach (string str in lastnames) { File.Delete(targetFloder + str + ".prefab"); } AssetDatabase.Refresh(); }
public virtual Image Images(UIIcon index) { return(Images(index, 0)); }
public virtual string Places(UIIcon index) { switch (index) { case UIIcon.PlacesRecentDocuments: { // Default = "Recent Documents" return Environment.GetFolderPath(Environment.SpecialFolder.Recent); } case UIIcon.PlacesDesktop: { // Default = "Desktop" return Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); } case UIIcon.PlacesPersonal: { // Default = "My Documents" return Environment.GetFolderPath(Environment.SpecialFolder.Personal); } case UIIcon.PlacesMyComputer: { // Default = "My Computer" return Environment.GetFolderPath(Environment.SpecialFolder.MyComputer); } case UIIcon.PlacesMyNetwork: { // Default = "My Network Places" return "/tmp"; } default: { throw new ArgumentOutOfRangeException("index", index, "Unsupported place"); } } }
public void AddCommand(string text, Action action, UIIcon icon) { AddCommand(text, new SimpleCommand(action), icon); }
public virtual Image Images(UIIcon index) { return Images(index, 0); }
public virtual Image Images(UIIcon index, int size) { switch (index) { case UIIcon.PlacesRecentDocuments: return GetSizedResourceImage ("document-open.png", size); case UIIcon.PlacesDesktop: return GetSizedResourceImage ("user-desktop.png", size); case UIIcon.PlacesPersonal: return GetSizedResourceImage ("user-home.png", size); case UIIcon.PlacesMyComputer: return GetSizedResourceImage ("computer.png", size); case UIIcon.PlacesMyNetwork: return GetSizedResourceImage ("folder-remote.png", size); // Icons for message boxes case UIIcon.MessageBoxError: return GetSizedResourceImage ("dialog-error.png", size); case UIIcon.MessageBoxInfo: return GetSizedResourceImage ("dialog-information.png", size); case UIIcon.MessageBoxQuestion: return GetSizedResourceImage ("dialog-question.png", size); case UIIcon.MessageBoxWarning: return GetSizedResourceImage ("dialog-warning.png", size); // misc Icons case UIIcon.NormalFolder: return GetSizedResourceImage ("folder.png", size); default: { throw new ArgumentException("Invalid Icon type requested", "index"); } } }
public void UIButtonEvent(ICON_TYPE type) { UIIcon icon = GetIcon(type); if (icon != null) { Util.ButtonAnimation(icon.GetTransform.gameObject); SetMenuCloseEvent(false); switch (icon.GetIconType) { case ICON_TYPE.GROUP: { if (m_isGroupOpen) { StartCoroutine(OnOffMenuGroup(false, true)); } StartCoroutine(OnOffExtendMenuGroup(!m_isExtendGroupOpen)); } break; case ICON_TYPE.FRIEND: case ICON_TYPE.FRIEND_FRIEND: { StateManager.instance.m_curState.OpenFriendWindow(); } break; case ICON_TYPE.TOWN: { if (m_isExtendGroupOpen) { StartCoroutine(OnOffExtendMenuGroup(false, true)); } StartCoroutine(OnOffMenuGroup(!m_isGroupOpen)); } break; case ICON_TYPE.COLLECT: { StateManager.instance.m_curState.OpenCollection(); } break; case ICON_TYPE.ACHIEVE: { AchievementManager.instance.OpenAchieveWindow(); } break; case ICON_TYPE.RANKING: { ((State_Village)StateManager.instance.m_curState).m_guiVillageManager.OpenParkRank(); } break; case ICON_TYPE.CLOTH: { WorldManager.instance.SetSceneDogInfo(WorldManager.instance.m_player.m_mainDog, 3, true, StateManager.instance.m_curStateType); } break; case ICON_TYPE.INTERIOR: { WorldManager.instance.SetReservMakingRoom(ItrItemWindow.WINDOWTYPE.MARKET, ItrItemWindow.TAPTYPE.TAP_THEME); ((State_Room)StateManager.instance.m_curState).m_guiManager.OnClickMakingRoom(); } break; case ICON_TYPE.DOGBOOK: { GUIManager_Room guiRoom = ((State_Room)StateManager.instance.m_curState).m_guiManager; guiRoom.OnOffDogGuide(true); } break; case ICON_TYPE.BREED: { WorldManager.instance.SetSceneDogInfo(0, 2, false, STATE_TYPE.STATE_ROOM); } break; case ICON_TYPE.DOGINFO: { WorldManager.instance.SetSceneDogInfo(0, 1, false, STATE_TYPE.STATE_ROOM); } break; case ICON_TYPE.FRIEND_DOGINFO: { ((State_Room)StateManager.instance.m_curState).m_guiManager.OnFriendDogInfo(); } break; case ICON_TYPE.INVENTORY: { InventoryWindow.instance.OpenInventory(); } break; case ICON_TYPE.DESIREREWARD: { GUIManager_Room guiRoom = ((State_Room)StateManager.instance.m_curState).m_guiManager; guiRoom.GetStateRoom().m_camManager.OrderCameraActive(false); //guiRoom.m_RewardListPopup.OpenRewardListPopup(); guiRoom.OpenRewardListPopup(); } break; case ICON_TYPE.BASICSHOP: { ShopWindow.instance.OpenShopWindow(SHOP_TAB_TYPE.TAB_MANAGETOOL, PRODUCT_TYPE.PRODUCT_MANAGE_ALL); } break; case ICON_TYPE.RETURNHOME: { NetworkManager.instance.SendRoomTransfer(WorldManager.instance.m_player.GetCurRoomNo()); } break; case ICON_TYPE.FRIEND_RETURNHOME: { NetworkManager.instance.SendSocVisit(WorldManager.instance.m_player.m_Friend.m_CurFriendNo); } break; case ICON_TYPE.EPLAY: { PluginManager.instance.OpenEplay(0); } break; case ICON_TYPE.TOWN01: case ICON_TYPE.TOWN02: case ICON_TYPE.FRIEND_TOWN01: case ICON_TYPE.FRIEND_TOWN02: case ICON_TYPE.TOWNSELECT: case ICON_TYPE.FRIEND_TOWNSELECT: { OnTownButtonClick(icon.GetIconType); } break; } } }
// ------------------------------------------------------------------------ // public void create() { this.icon = this.tool_gui.createTunnelIcon(); this.icon.setVisible(false); }
public override Image Images(UIIcon index, int size) { switch (index) { case UIIcon.PlacesRecentDocuments: if (XplatUI.RunningOnUnix) return MimeIconEngine.GetIconForMimeTypeAndSize( "recently/recently", new Size(size, size) ); else return base.Images (UIIcon.PlacesRecentDocuments, size); case UIIcon.PlacesDesktop: if (XplatUI.RunningOnUnix) return MimeIconEngine.GetIconForMimeTypeAndSize( "desktop/desktop", new Size(size, size) ); else return base.Images (UIIcon.PlacesDesktop, size); case UIIcon.PlacesPersonal: if (XplatUI.RunningOnUnix) return MimeIconEngine.GetIconForMimeTypeAndSize( "directory/home", new Size(size, size) ); else return base.Images (UIIcon.PlacesPersonal, size); case UIIcon.PlacesMyComputer: if (XplatUI.RunningOnUnix) return MimeIconEngine.GetIconForMimeTypeAndSize( "workplace/workplace", new Size(size, size) ); else return base.Images (UIIcon.PlacesMyComputer, size); case UIIcon.PlacesMyNetwork: if (XplatUI.RunningOnUnix) return MimeIconEngine.GetIconForMimeTypeAndSize( "network/network", new Size(size, size) ); else return base.Images (UIIcon.PlacesMyNetwork, size); // Icons for message boxes case UIIcon.MessageBoxError: return base.Images (UIIcon.MessageBoxError, size); case UIIcon.MessageBoxInfo: return base.Images (UIIcon.MessageBoxInfo, size); case UIIcon.MessageBoxQuestion: return base.Images (UIIcon.MessageBoxQuestion, size); case UIIcon.MessageBoxWarning: return base.Images (UIIcon.MessageBoxWarning, size); // misc Icons case UIIcon.NormalFolder: if (XplatUI.RunningOnUnix) return MimeIconEngine.GetIconForMimeTypeAndSize( "inode/directory", new Size(size, size) ); else return base.Images (UIIcon.NormalFolder, size); default: { throw new ArgumentException("Invalid Icon type requested", "index"); } } }