Rescale node to fit inside given width
Function limitNodeWidth
#include <Geode/utils/cocos.hpp>cocos2d::CCNode*node
,floatwidth
,floatdef
,floatmin
)node
Node to rescale
width
Width to fit inside
def
Default scale
min
Minimum scale
#include <Geode/utils/cocos.hpp>Rescale node to fit inside given width
node
width
def
min