Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
iv_components
Ability
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
{
13
this->
cm
.
inherits
(
iv::LumaButton::cm
);
14
15
this->
resizeStage
(
iv::FlatShader::ResizeStage::Scale
);
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
}