#include "MenuTextMusicVolume.h"

MenuTextMusicVolume::MenuTextMusicVolume()
{
	ani.png = L"sys_obj";
	ani.sprite_index = L"audio";
}

void MenuTextMusicVolume::Step()
{
	if (gameFunc)
	{
		if (gameFunc->GetMusicVolume)
		{
			ani.image_index = gameFunc->GetMusicVolume();
			if (ani.image_index == 0)
			{
				el.flag.text = true;
				el.eid = L"¾²Òô";
			}
			else
			{
				el.flag.text = false;
			}
		}
	}
}

std::shared_ptr<Entity> CreateMenuTextMusicVolume()
{
	return std::make_shared<MenuTextMusicVolume>();;
}
