Ability_View.cpp
Go to the documentation of this file.
1 #include "Ability_View.hpp"
2 
3 using namespace iv;
4 
5 namespace comp
6 {
7 
8 Ability_View::Ability_View( iv::Instance * inst, Ability * m_ability, AbilityInfo info ) :
9  iv::LumaButton( inst, iv::LumaStyleId() ),
10  cm( inst, this, "Ability_View" ),
11  m_ability( m_ability )
12 {
14 
16  this->surface( ResourcePath( "/CoreModels/Ability/Ability_View/surface.png" ) );
17  this->hot( ResourcePath( "/CoreModels/Ability/Ability_View/hot.png" ) );
18  this->overlay( info.overlay );
19  this->translucent( true );
20 
21  this->input.field_release.Assign_Attribute_RW( &m_ability->activator );
22 }
23 
24 }