mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-26 09:27:57 -05:00
add icon for docs
This commit is contained in:
parent
2626acba35
commit
befcf8ecfd
2 changed files with 8 additions and 29 deletions
|
@ -7,6 +7,7 @@ name = "Geode"
|
|||
version = "v1.0.0-beta"
|
||||
repository = "https://github.com/geode-sdk/geode"
|
||||
tree = "https://github.com/geode-sdk/geode/tree/main"
|
||||
icon = "loader/resources/logos/geode-circle.png"
|
||||
|
||||
[[sources]]
|
||||
name = "Geode"
|
||||
|
|
|
@ -196,12 +196,7 @@ namespace geode {
|
|||
*
|
||||
* @tparam T A type that inherits from CCObject.
|
||||
*
|
||||
* @example[flash]
|
||||
* #include <Geode/utils/cocos.hpp>
|
||||
*
|
||||
* USE_GEODE_NAMESPACE();
|
||||
*
|
||||
* //!flash-snippet-start
|
||||
* @example
|
||||
* class MyNode : public CCNode {
|
||||
* protected:
|
||||
* // no need to manually call retain or
|
||||
|
@ -219,32 +214,15 @@ namespace geode {
|
|||
* return true;
|
||||
* }
|
||||
* };
|
||||
* //!flash-snippet-end
|
||||
*
|
||||
* @example[flash]
|
||||
* #include <Geode/utils/cocos.hpp>
|
||||
* #include <Geode/modify/MenuLayer.hpp>
|
||||
*
|
||||
* USE_GEODE_NAMESPACE();
|
||||
*
|
||||
* class ModifyMenuLayer : public MenuLayer {
|
||||
* bool init() {
|
||||
* if (!MenuLayer::init())
|
||||
* return false;
|
||||
*
|
||||
* //!flash-snippet-start
|
||||
* // Save a child from the current layer into a menu
|
||||
* Ref<CCMenu> menu = static_cast<CCMenu*>(this->getChildByID("main-menu"));
|
||||
* @example
|
||||
* // Save a child from the current layer into a menu
|
||||
* Ref<CCMenu> menu = static_cast<CCMenu*>(this->getChildByID("main-menu"));
|
||||
*
|
||||
* // Remove the menu from its parent
|
||||
* menu->removeFromParent();
|
||||
* // Remove the menu from its parent
|
||||
* menu->removeFromParent();
|
||||
*
|
||||
* // Menu will still point to a valid CCMenu as long as the menu variable exist
|
||||
* //!flash-snippet-end
|
||||
*
|
||||
* return true;
|
||||
* }
|
||||
* };
|
||||
* // Menu will still point to a valid CCMenu as long as the menu variable exist
|
||||
*/
|
||||
template <class T>
|
||||
class Ref final {
|
||||
|
|
Loading…
Reference in a new issue