mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-26 17:36:05 -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"
|
version = "v1.0.0-beta"
|
||||||
repository = "https://github.com/geode-sdk/geode"
|
repository = "https://github.com/geode-sdk/geode"
|
||||||
tree = "https://github.com/geode-sdk/geode/tree/main"
|
tree = "https://github.com/geode-sdk/geode/tree/main"
|
||||||
|
icon = "loader/resources/logos/geode-circle.png"
|
||||||
|
|
||||||
[[sources]]
|
[[sources]]
|
||||||
name = "Geode"
|
name = "Geode"
|
||||||
|
|
|
@ -196,12 +196,7 @@ namespace geode {
|
||||||
*
|
*
|
||||||
* @tparam T A type that inherits from CCObject.
|
* @tparam T A type that inherits from CCObject.
|
||||||
*
|
*
|
||||||
* @example[flash]
|
* @example
|
||||||
* #include <Geode/utils/cocos.hpp>
|
|
||||||
*
|
|
||||||
* USE_GEODE_NAMESPACE();
|
|
||||||
*
|
|
||||||
* //!flash-snippet-start
|
|
||||||
* class MyNode : public CCNode {
|
* class MyNode : public CCNode {
|
||||||
* protected:
|
* protected:
|
||||||
* // no need to manually call retain or
|
* // no need to manually call retain or
|
||||||
|
@ -219,32 +214,15 @@ namespace geode {
|
||||||
* return true;
|
* return true;
|
||||||
* }
|
* }
|
||||||
* };
|
* };
|
||||||
* //!flash-snippet-end
|
|
||||||
*
|
*
|
||||||
* @example[flash]
|
* @example
|
||||||
* #include <Geode/utils/cocos.hpp>
|
* // Save a child from the current layer into a menu
|
||||||
* #include <Geode/modify/MenuLayer.hpp>
|
* Ref<CCMenu> menu = static_cast<CCMenu*>(this->getChildByID("main-menu"));
|
||||||
*
|
*
|
||||||
* USE_GEODE_NAMESPACE();
|
* // Remove the menu from its parent
|
||||||
|
* menu->removeFromParent();
|
||||||
*
|
*
|
||||||
* class ModifyMenuLayer : public MenuLayer {
|
* // Menu will still point to a valid CCMenu as long as the menu variable exist
|
||||||
* 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"));
|
|
||||||
*
|
|
||||||
* // 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;
|
|
||||||
* }
|
|
||||||
* };
|
|
||||||
*/
|
*/
|
||||||
template <class T>
|
template <class T>
|
||||||
class Ref final {
|
class Ref final {
|
||||||
|
|
Loading…
Reference in a new issue