2020-04-03 13:23:19 +02:00
|
|
|
//
|
|
|
|
// Created by versustune on 17.03.20.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "LookHandler.h"
|
|
|
|
#include "../../Core/Config.h"
|
|
|
|
|
2020-06-13 16:52:16 +02:00
|
|
|
LookHandler::LookHandler ()
|
|
|
|
{
|
|
|
|
selectLook (Config::getInstance ()->getCurrentLook ());
|
2020-04-03 13:23:19 +02:00
|
|
|
}
|
|
|
|
|
2020-06-13 16:52:16 +02:00
|
|
|
LookHandler::~LookHandler ()
|
|
|
|
{
|
2020-04-03 13:23:19 +02:00
|
|
|
//delete this shit!
|
2020-06-08 21:27:17 +02:00
|
|
|
delete m_feels[0];
|
|
|
|
delete m_feels[1];
|
2020-04-03 13:23:19 +02:00
|
|
|
}
|
|
|
|
|
2020-06-13 16:52:16 +02:00
|
|
|
void LookHandler::selectLook (int index)
|
|
|
|
{
|
2020-06-08 21:27:17 +02:00
|
|
|
m_currentLook = index;
|
|
|
|
}
|
|
|
|
|
2020-06-13 16:52:16 +02:00
|
|
|
LookAndFeel_V4* LookHandler::getLook ()
|
|
|
|
{
|
2020-06-08 21:27:17 +02:00
|
|
|
return m_feels[m_currentLook];
|
2020-04-03 13:23:19 +02:00
|
|
|
}
|