mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 08:54:15 +00:00
Beta functions for MxVariable (#1645)
* Beta match MxVariable classes * CustomizeAnimFileVariable
This commit is contained in:
@@ -1090,6 +1090,7 @@ LegoROI* LegoCharacterManager::FUN_10085a80(const char* p_name, const char* p_lo
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10085aa0
|
||||
// FUNCTION: BETA10 0x1007703d
|
||||
CustomizeAnimFileVariable::CustomizeAnimFileVariable(const char* p_key)
|
||||
{
|
||||
m_key = p_key;
|
||||
@@ -1097,6 +1098,7 @@ CustomizeAnimFileVariable::CustomizeAnimFileVariable(const char* p_key)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10085b50
|
||||
// FUNCTION: BETA10 0x100770c8
|
||||
void CustomizeAnimFileVariable::SetValue(const char* p_value)
|
||||
{
|
||||
// STRING: LEGO1 0x100fc4f4
|
||||
|
||||
@@ -1334,6 +1334,11 @@ void LegoBackgroundColor::SetLightColor()
|
||||
SetLightColor(convertedR, convertedG, convertedB);
|
||||
}
|
||||
|
||||
// FUNCTION: BETA10 0x10086a87
|
||||
LegoFullScreenMovie::LegoFullScreenMovie()
|
||||
{
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x1003c500
|
||||
// FUNCTION: BETA10 0x10086af6
|
||||
LegoFullScreenMovie::LegoFullScreenMovie(const char* p_key, const char* p_value)
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include "legonavcontroller.h"
|
||||
#include "legovideomanager.h"
|
||||
#include "misc.h"
|
||||
#include "mxdebug.h"
|
||||
#include "roi/legoroi.h"
|
||||
|
||||
DECOMP_SIZE_ASSERT(VisibilityVariable, 0x24)
|
||||
@@ -101,6 +102,10 @@ const char* g_nick = "Nick";
|
||||
// STRING: LEGO1 0x100f39e0
|
||||
const char* g_laura = "Laura";
|
||||
|
||||
// GLOBAL: BETA10 0x101f6ce4
|
||||
// STRING: BETA10 0x101f6d54
|
||||
const char* g_varDEBUG = "DEBUG";
|
||||
|
||||
// FUNCTION: LEGO1 0x10037d00
|
||||
// FUNCTION: BETA10 0x100d5620
|
||||
void VisibilityVariable::SetValue(const char* p_value)
|
||||
@@ -130,6 +135,7 @@ void VisibilityVariable::SetValue(const char* p_value)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10037d80
|
||||
// FUNCTION: BETA10 0x100d56ee
|
||||
void CameraLocationVariable::SetValue(const char* p_value)
|
||||
{
|
||||
char buffer[256];
|
||||
@@ -137,22 +143,25 @@ void CameraLocationVariable::SetValue(const char* p_value)
|
||||
|
||||
strcpy(buffer, p_value);
|
||||
|
||||
char* location = strtok(buffer, ",");
|
||||
NavController()->UpdateLocation(location);
|
||||
char* token = strtok(buffer, ",");
|
||||
assert(token);
|
||||
NavController()->UpdateLocation(token);
|
||||
|
||||
location = strtok(NULL, ",");
|
||||
if (location) {
|
||||
MxFloat pov = (MxFloat) atof(location);
|
||||
token = strtok(NULL, ",");
|
||||
if (token) {
|
||||
MxFloat pov = (MxFloat) atof(token);
|
||||
VideoManager()->Get3DManager()->SetFrustrum(pov, 0.1f, 250.0f);
|
||||
}
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10037e30
|
||||
// FUNCTION: BETA10 0x100d57e2
|
||||
void CursorVariable::SetValue(const char* p_value)
|
||||
{
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10037e40
|
||||
// FUNCTION: BETA10 0x100d57fa
|
||||
void WhoAmIVariable::SetValue(const char* p_value)
|
||||
{
|
||||
MxVariable::SetValue(p_value);
|
||||
@@ -173,3 +182,10 @@ void WhoAmIVariable::SetValue(const char* p_value)
|
||||
GameState()->SetActorId(LegoActor::c_laura);
|
||||
}
|
||||
}
|
||||
|
||||
// FUNCTION: BETA10 0x100d58fa
|
||||
void DebugVariable::SetValue(const char* p_value)
|
||||
{
|
||||
MxVariable::SetValue(p_value);
|
||||
MxTrace("%s\n", p_value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user