Esempio n. 1
0
Hikari::FlashValue HikariDemo::onOpacityChange(Hikari::FlashControl* caller, const Hikari::Arguments& args)
{
	Real opacityPercent = args.at(0).getNumber();

	caller->setOpacity(opacityPercent / 100);

	return FLASH_VOID;
}
Esempio n. 2
0
Hikari::FlashValue HikariDemo::onColorChange(Hikari::FlashControl* caller, const Hikari::Arguments& args)
{
	ColourValue color = args.at(0).getNumberAsColor();

	viewport->setBackgroundColour(color);

	return FLASH_VOID;
}
Hikari::FlashValue AccessoriesState::onItemLike(FlashControl* caller, const Hikari::Arguments& args)
{
	Ogre::String targetPicture = args.at(0).getString();
	gStatistics->likedItem(targetPicture);
	return FLASH_VOID;
}