mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
outfit changing hair
This commit is contained in:
@@ -86,8 +86,6 @@ void OTClient::registerLuaFunctions()
|
||||
g_lua.bindClassStaticFunction<UICreature>("create", &UICreature::create<UICreature>);
|
||||
g_lua.bindClassMemberFunction<UICreature>("getCreature", &UICreature::getCreature);
|
||||
g_lua.bindClassMemberFunction<UICreature>("setCreature", &UICreature::setCreature);
|
||||
g_lua.bindClassMemberFunction<UICreature>("setOutfitType", &UICreature::setOutfitType);
|
||||
|
||||
|
||||
g_lua.registerClass<UIMap, UIWidget>();
|
||||
g_lua.bindClassStaticFunction<UIMap>("create", &UIWidget::create<UIMap>);
|
||||
|
@@ -50,12 +50,3 @@ void UICreature::onStyleApply(const OTMLNodePtr& styleNode)
|
||||
|
||||
UIWidget::onStyleApply(styleNode);
|
||||
}
|
||||
|
||||
void UICreature::setOutfitType(int outfitType)
|
||||
{
|
||||
if(m_creature) {
|
||||
Outfit outfit = m_creature->getOutfit();
|
||||
outfit.setType(outfitType);
|
||||
m_creature->setOutfit(outfit);
|
||||
}
|
||||
}
|
||||
|
@@ -34,7 +34,6 @@ public:
|
||||
void render();
|
||||
|
||||
void setCreature(const CreaturePtr& creature) { m_creature = creature; }
|
||||
void setOutfitType(int outfitType);
|
||||
|
||||
CreaturePtr getCreature() { return m_creature; }
|
||||
|
||||
|
Reference in New Issue
Block a user