Function isSpriteName

#include <Geode/utils/cocos.hpp>boolisSpriteName(,)

Checks if a node has the given sprite name either in the sprite or in the sprite inside the button.

Parameters

node

Node to check

name

Name of the sprite to search for
Return value
True if the node has the given sprite name
Examples0