mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Merge branch 'main' into fix/build-files
This commit is contained in:
commit
a9d2c21599
|
|
@ -56,7 +56,7 @@ void SoundEngine::playMusicTick() {};
|
|||
#else
|
||||
|
||||
#ifdef _WINDOWS64
|
||||
char SoundEngine::m_szSoundPath[]={"Windows64Media\\Sound\\"};
|
||||
char SoundEngine::m_szSoundPath[]={"Windows64\\Sound\\"};
|
||||
char SoundEngine::m_szMusicPath[]={"music\\"};
|
||||
char SoundEngine::m_szRedistName[]={"redist64"};
|
||||
#elif defined _DURANGO
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
#include "stdafx.h"
|
||||
#include "ConsoleGameMode.h"
|
||||
#include "..\Common\Tutorial\Tutorial.h"
|
||||
#include ".\Tutorial\Tutorial.h"
|
||||
|
||||
ConsoleGameMode::ConsoleGameMode(int iPad, Minecraft *minecraft, ClientConnection *connection)
|
||||
: TutorialMode(iPad, minecraft, connection)
|
||||
{
|
||||
tutorial = new Tutorial(iPad);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#pragma once
|
||||
#include "..\Common\Tutorial\TutorialMode.h"
|
||||
#include ".\Tutorial\TutorialMode.h"
|
||||
|
||||
class ConsoleGameMode : public TutorialMode
|
||||
{
|
||||
|
|
@ -7,4 +7,4 @@ public:
|
|||
ConsoleGameMode(int iPad, Minecraft *minecraft, ClientConnection *connection);
|
||||
|
||||
virtual bool isImplemented() { return true; }
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -9,12 +9,12 @@
|
|||
#include "..\MultiPlayerLevel.h"
|
||||
#include "..\GameRenderer.h"
|
||||
#include "..\ProgressRenderer.h"
|
||||
#include "..\..\Minecraft.Client\LevelRenderer.h"
|
||||
#include "..\..\Minecraft.Client\MobSkinMemTextureProcessor.h"
|
||||
#include "..\..\Minecraft.Client\Minecraft.h"
|
||||
#include "..\LevelRenderer.h"
|
||||
#include "..\MobSkinMemTextureProcessor.h"
|
||||
#include "..\Minecraft.h"
|
||||
#include "..\ClientConnection.h"
|
||||
#include "..\MultiPlayerLocalPlayer.h"
|
||||
#include "..\..\Minecraft.Client\LocalPlayer.h"
|
||||
#include "..\LocalPlayer.h"
|
||||
#include "..\..\Minecraft.World\Player.h"
|
||||
#include "..\..\Minecraft.World\Inventory.h"
|
||||
#include "..\..\Minecraft.World\Level.h"
|
||||
|
|
@ -22,17 +22,17 @@
|
|||
#include "..\..\Minecraft.World\Container.h"
|
||||
#include "..\..\Minecraft.World\DispenserTileEntity.h"
|
||||
#include "..\..\Minecraft.World\SignTileEntity.h"
|
||||
#include "..\..\Minecraft.Client\StatsCounter.h"
|
||||
#include "..\StatsCounter.h"
|
||||
#include "..\GameMode.h"
|
||||
#include "..\Xbox\Social\SocialManager.h"
|
||||
#include "Tutorial\TutorialMode.h"
|
||||
#if defined _XBOX || defined _WINDOWS64
|
||||
#include "..\..\Minecraft.Client\Xbox\XML\ATGXmlParser.h"
|
||||
#include "..\..\Minecraft.Client\Xbox\XML\xmlFilesCallback.h"
|
||||
#include "..\Xbox\XML\ATGXmlParser.h"
|
||||
#include "..\Xbox\XML\xmlFilesCallback.h"
|
||||
#endif
|
||||
#include "Minecraft_Macros.h"
|
||||
#include "..\..\Minecraft.Client\PlayerList.h"
|
||||
#include "..\..\Minecraft.Client\ServerPlayer.h"
|
||||
#include "..\PlayerList.h"
|
||||
#include "..\ServerPlayer.h"
|
||||
#include "GameRules\ConsoleGameRules.h"
|
||||
#include "GameRules\ConsoleSchematicFile.h"
|
||||
#include "..\..\Minecraft.World\InputOutputStream.h"
|
||||
|
|
@ -40,7 +40,7 @@
|
|||
#include "..\User.h"
|
||||
#include "..\..\Minecraft.World\LevelData.h"
|
||||
#include "..\..\Minecraft.World\net.minecraft.world.entity.player.h"
|
||||
#include "..\..\Minecraft.Client\EntityRenderDispatcher.h"
|
||||
#include "..\EntityRenderDispatcher.h"
|
||||
#include "..\..\Minecraft.World\compression.h"
|
||||
#include "..\TexturePackRepository.h"
|
||||
#include "..\DLCTexturePack.h"
|
||||
|
|
|
|||
|
|
@ -5,11 +5,11 @@ using namespace std;
|
|||
#include "Audio/Consoles_SoundEngine.h"
|
||||
|
||||
#include <xuiapp.h>
|
||||
#include "..\Common\Tutorial\TutorialEnum.h"
|
||||
#include ".\Tutorial\TutorialEnum.h"
|
||||
|
||||
#ifdef _XBOX
|
||||
#include "..\Common\XUI\XUI_Helper.h"
|
||||
#include "..\Common\XUI\XUI_HelpCredits.h"
|
||||
#include ".\XUI\XUI_Helper.h"
|
||||
#include ".\XUI\XUI_HelpCredits.h"
|
||||
#endif
|
||||
#include "UI\UIStructs.h"
|
||||
|
||||
|
|
@ -17,9 +17,9 @@ using namespace std;
|
|||
#include <xsocialpost.h>
|
||||
|
||||
#include "..\StringTable.h"
|
||||
#include "..\Common\DLC\DLCManager.h"
|
||||
#include "..\Common\GameRules\ConsoleGameRulesConstants.h"
|
||||
#include "..\Common\GameRules\GameRuleManager.h"
|
||||
#include ".\DLC\DLCManager.h"
|
||||
#include ".\GameRules\ConsoleGameRulesConstants.h"
|
||||
#include ".\GameRules\GameRuleManager.h"
|
||||
#include "..\SkinBox.h"
|
||||
#include "..\ArchiveFile.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
#include "TutorialConstraints.h"
|
||||
#include "ChoiceTask.h"
|
||||
#include "..\..\..\Minecraft.World\Material.h"
|
||||
#include "..\..\Windows64\KeyboardMouseInput.h"
|
||||
|
||||
ChoiceTask::ChoiceTask(Tutorial *tutorial, int descriptionId, int promptId /*= -1*/, bool requiresUserInput /*= false*/,
|
||||
int iConfirmMapping /*= 0*/, int iCancelMapping /*= 0*/,
|
||||
|
|
@ -51,11 +52,11 @@ bool ChoiceTask::isCompleted()
|
|||
// If the player is under water then allow all keypresses so they can jump out
|
||||
if( pMinecraft->localplayers[tutorial->getPad()]->isUnderLiquid(Material::water) ) return false;
|
||||
|
||||
if(!m_bConfirmMappingComplete && InputManager.GetValue(pMinecraft->player->GetXboxPad(), m_iConfirmMapping) > 0 )
|
||||
if(!m_bConfirmMappingComplete && InputManager.GetValue(pMinecraft->player->GetXboxPad(), m_iConfirmMapping) > 0 || KMInput.IsKeyDown(VK_RETURN))
|
||||
{
|
||||
m_bConfirmMappingComplete = true;
|
||||
}
|
||||
if(!m_bCancelMappingComplete && InputManager.GetValue(pMinecraft->player->GetXboxPad(), m_iCancelMapping) > 0 )
|
||||
if(!m_bCancelMappingComplete && InputManager.GetValue(pMinecraft->player->GetXboxPad(), m_iCancelMapping) > 0 || KMInput.IsKeyDown('B'))
|
||||
{
|
||||
m_bCancelMappingComplete = true;
|
||||
}
|
||||
|
|
@ -99,11 +100,11 @@ void ChoiceTask::handleUIInput(int iAction)
|
|||
{
|
||||
if(bHasBeenActivated && m_bShownForMinimumTime)
|
||||
{
|
||||
if( iAction == m_iConfirmMapping )
|
||||
if( iAction == m_iConfirmMapping)
|
||||
{
|
||||
m_bConfirmMappingComplete = true;
|
||||
}
|
||||
else if(iAction == m_iCancelMapping )
|
||||
else if(iAction == m_iCancelMapping)
|
||||
{
|
||||
m_bCancelMappingComplete = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -335,8 +335,11 @@ void UIScene_MainMenu::handlePress(F64 controlId, F64 childId)
|
|||
signInReturnedFunc = &UIScene_MainMenu::UnlockFullGame_SignInReturned;
|
||||
break;
|
||||
case eControl_Exit:
|
||||
//CD - Added for audio
|
||||
ui.PlayUISFX(eSFX_Press);
|
||||
|
||||
if( ProfileManager.IsFullVersion() )
|
||||
{
|
||||
{
|
||||
UINT uiIDA[2];
|
||||
uiIDA[0]=IDS_CANCEL;
|
||||
uiIDA[1]=IDS_OK;
|
||||
|
|
|
|||
BIN
Minecraft.Client/Windows64/Sound/Minecraft.msscmp
Normal file
BIN
Minecraft.Client/Windows64/Sound/Minecraft.msscmp
Normal file
Binary file not shown.
|
|
@ -716,6 +716,7 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
|
|||
UNREFERENCED_PARAMETER(hPrevInstance);
|
||||
UNREFERENCED_PARAMETER(lpCmdLine);
|
||||
|
||||
/*
|
||||
// Declare DPI awareness so GetSystemMetrics returns physical pixels
|
||||
SetProcessDPIAware();
|
||||
g_iScreenWidth = GetSystemMetrics(SM_CXSCREEN);
|
||||
|
|
@ -726,6 +727,8 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
|
|||
sprintf(buf, "Screen resolution: %dx%d\n", g_iScreenWidth, g_iScreenHeight);
|
||||
OutputDebugStringA(buf);
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
if(lpCmdLine)
|
||||
{
|
||||
|
|
@ -1220,6 +1223,17 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
|
|||
ToggleFullscreen();
|
||||
}
|
||||
|
||||
// TAB opens host options menu. - Vvis :3
|
||||
if (KMInput.IsKeyPressed(VK_TAB))
|
||||
{
|
||||
if (Minecraft* pMinecraft = Minecraft::GetInstance())
|
||||
{
|
||||
{
|
||||
ui.NavigateToScene(0, eUIScene_InGameHostOptionsMenu);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
// has the game defined profile data been changed (by a profile load)
|
||||
if(app.uiGameDefinedDataChangedBitmask!=0)
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ This project contains the source code of Minecraft Legacy Console Edition v1.3.0
|
|||
- **Attack / Destroy**: `Left Click`
|
||||
- **Use / Place**: `Right Click`
|
||||
- **Select Item**: `Mouse Wheel` or keys `1` to `9`
|
||||
- **Accept or Decline Tutorial hints**: `Enter` to accept and `B` to decline
|
||||
- **Host Options**: `TAB`
|
||||
|
||||
## Build & Run
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue