Skip to content

Commit 733e251

Browse files
committed
feat: Declared SetBool in GFxUtilities.
1 parent 90f6113 commit 733e251

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Plugin/src/Shared/SharedFunctions.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ namespace RE
3434
fxValue = value;
3535
destination->SetMember(name, &fxValue);
3636
}
37+
38+
void RegisterBool(Scaleform::GFx::Value* destination, const char* name, bool value)
39+
{
40+
Scaleform::GFx::Value fxValue;
41+
fxValue = value;
42+
destination->SetMember(name, &fxValue);
43+
}
3744
}
3845

3946
// Takes a Float and converts it to a Precise String.

Plugin/src/Shared/SharedFunctions.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace RE
1010
void RegisterString(Scaleform::GFx::Value* destination, Scaleform::Ptr<Scaleform::GFx::ASMovieRootBase> asMovieRoot, const char* name, const char* string);
1111
void RegisterNumber(Scaleform::GFx::Value* destination, const char* name, double value);
1212
void RegisterInt(Scaleform::GFx::Value* destination, const char* name, std::uint32_t value);
13+
void RegisterBool(Scaleform::GFx::Value* destination, const char* name, bool value);
1314
}
1415

1516
std::string FloatToPreciseString(float value, std::uint32_t precision);

0 commit comments

Comments
 (0)