public static CCMenuItemImage itemFromNormalImage(string normalImage, string selectedImage, string disabledImage) { CCMenuItemImage cCMenuItemImage = new CCMenuItemImage(); if (cCMenuItemImage != null && cCMenuItemImage.initFromNormalImage(normalImage, selectedImage, disabledImage, null, null)) { return(cCMenuItemImage); } return(null); }
/// <summary> /// creates a menu item with a normal and selected image with target/selector /// </summary> public static CCMenuItemImage itemFromNormalImage(string normalImage, string selectedImage, string disabledImage, SelectorProtocol target, SEL_MenuHandler selector) { CCMenuItemImage pRet = new CCMenuItemImage(); if (pRet.initFromNormalImage(normalImage, selectedImage, disabledImage, target, selector)) { return pRet; } return null; }
public static CCMenuItemImage itemFromNormalImage(string normalImage, string selectedImage, string disabledImage, SelectorProtocol target, SEL_MenuHandler selector) { CCMenuItemImage cCMenuItemImage = new CCMenuItemImage(); if (cCMenuItemImage.initFromNormalImage(normalImage, selectedImage, disabledImage, target, selector)) { return(cCMenuItemImage); } return(null); }
/// <summary> /// creates a menu item with a normal,selected and disabled image with target/selector /// </summary> public static CCMenuItemImage itemFromNormalImage(string normalImage, string selectedImage, string disabledImage) { CCMenuItemImage pRet = new CCMenuItemImage(); if (pRet != null && pRet.initFromNormalImage(normalImage, selectedImage, disabledImage, null, null)) { return(pRet); } return(null); }
/// <summary> /// creates a menu item with a normal,selected and disabled image with target/selector /// </summary> public static CCMenuItemImage itemFromNormalImage(string normalImage, string selectedImage, string disabledImage) { CCMenuItemImage pRet = new CCMenuItemImage(); if (pRet != null && pRet.initFromNormalImage(normalImage, selectedImage, disabledImage, null, null)) { return pRet; } return null; }