first commit

This commit is contained in:
murdle
2026-03-01 02:38:58 +02:00
commit 19250b9db4
19111 changed files with 4358159 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
#include "stdafx.h"
#include "..\..\..\Minecraft.World\ItemInstance.h"
#if !(defined _XBOX) && !(defined __PSVITA__)
#include "..\UI\UI.h"
#endif
#include "Tutorial.h"
#include "XuiCraftingTask.h"
bool XuiCraftingTask::isCompleted()
{
#ifndef __PSVITA__
// This doesn't seem to work
//IUIScene_CraftingMenu *craftScene = reinterpret_cast<IUIScene_CraftingMenu *>(tutorial->getScene());
#ifdef _XBOX
CXuiSceneCraftingPanel *craftScene = (CXuiSceneCraftingPanel *)(tutorial->getScene());
#else
UIScene_CraftingMenu *craftScene = reinterpret_cast<UIScene_CraftingMenu *>(tutorial->getScene());
#endif
bool completed = false;
switch(m_type)
{
case e_Crafting_SelectGroup:
if(craftScene != NULL && craftScene->getCurrentGroup() == m_group)
{
completed = true;
}
break;
case e_Crafting_SelectItem:
if(craftScene != NULL && craftScene->isItemSelected(m_item))
{
completed = true;
}
break;
}
return completed;
#else
return true;
#endif
}