add icon for docs

This commit is contained in:
HJfod 2023-01-24 21:50:40 +02:00
parent 2626acba35
commit befcf8ecfd
2 changed files with 8 additions and 29 deletions

View file

@ -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"

View file

@ -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,20 +214,8 @@ namespace geode {
* return true; * return true;
* } * }
* }; * };
* //!flash-snippet-end
* *
* @example[flash] * @example
* #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 * // Save a child from the current layer into a menu
* Ref<CCMenu> menu = static_cast<CCMenu*>(this->getChildByID("main-menu")); * Ref<CCMenu> menu = static_cast<CCMenu*>(this->getChildByID("main-menu"));
* *
@ -240,11 +223,6 @@ namespace geode {
* menu->removeFromParent(); * menu->removeFromParent();
* *
* // Menu will still point to a valid CCMenu as long as the menu variable exist * // 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 {