-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Minor adjustments, start of adding back functionality to
ExamineMenu.
- Loading branch information
1 parent
2d281e2
commit 6bbcd4b
Showing
6 changed files
with
73 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma once | ||
|
||
#include "Shared/SharedFunctions.h" | ||
|
||
namespace RE | ||
{ | ||
namespace Cascadia | ||
{ | ||
namespace ExamineMenu | ||
{ | ||
class NoRepairKits : public Scaleform::GFx::FunctionHandler | ||
{ | ||
public: | ||
virtual void Call(const Params& a_params) | ||
{ | ||
SendHUDMessage::ShowHUDMessage("$CAS_NoRepairKits", 0, true, true); | ||
} | ||
}; | ||
|
||
bool RegisterScaleform(Scaleform::GFx::Movie* a_view, Scaleform::GFx::Value* a_value) | ||
{ | ||
Scaleform::GFx::Value currentSWFPath; | ||
|
||
// Register native code handlers. | ||
if (a_view->asMovieRoot->GetVariable(¤tSWFPath, "root.loaderInfo.url")) | ||
{ | ||
if (_stricmp(currentSWFPath.GetString(), "Interface/ExamineMenu.swf") == 0) | ||
{ | ||
Scaleform::GFx::Value bgsCodeObj; | ||
a_view->asMovieRoot->GetVariable(&bgsCodeObj, "root.Menu_mc.BGSCodeObj"); | ||
|
||
RegisterFunction<NoRepairKits>(&bgsCodeObj, a_view->asMovieRoot, "NoRepairKits"); | ||
} | ||
return true; | ||
} | ||
return false; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters