Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@ assets/LoadingScreens/*.psd
/zig-out/
/.zig-cache/
/zig-pkg/

# older build artifacts
/mods/
/.xmake/
/vsxmake2022/
/zig-build-error.log
Binary file added assets/LoadingScreens/M96 Loading Screen.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/loadingscreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ pub fn build(b: *std.Build) void {
.default_target = .{ .abi = if (builtin.os.tag == .windows) .msvc else null },
});
// Local builds should behave like the shipped mod while retaining symbols for crash reports and debuggers.
const optimize = b.option(std.builtin.OptimizeMode, "optimize", "Prioritize performance, safety, or binary size")
orelse .ReleaseFast;
const optimize = b.option(std.builtin.OptimizeMode, "optimize", "Prioritize performance, safety, or binary size") orelse .ReleaseFast;
const options = Options.parse(b);
mod.addUniversal(b, optimize, options);
const ctx = Ctx.init(b, target, optimize, options);
Expand Down
32 changes: 8 additions & 24 deletions src/mod/game/app.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,53 +267,37 @@ struct TutorialMaskUILoader : unity::Behaviour {
using Class = il2cpp::Class<"Assembly-CSharp", "Digit.Prime.Tutorial", "TutorialMaskUILoader">;

unity::Behaviour* Controller()
{
return Get<"Controller", unity::Behaviour*>();
}
{ return Get<"Controller", unity::Behaviour*>(); }
};

struct TutorialManager : il2cpp::Object {
using Class = il2cpp::Class<"Assembly-CSharp", "Digit.Prime.Tutorial", "TutorialManager">;

static bool Active()
{
return Class::Field<"_isActive", bool>();
}
{ return Class::Field<"_isActive", bool>(); }

static void SetActive(bool active)
{
Class::SetField<"_isActive">(active);
}
{ Class::SetField<"_isActive">(active); }

static bool BlockingInput()
{
return Class::Field<"_isBlockingInput", bool>();
}
{ return Class::Field<"_isBlockingInput", bool>(); }

static void SetBlockingInput(bool blocked)
{
Class::SetField<"_isBlockingInput">(blocked);
}
{ Class::SetField<"_isBlockingInput">(blocked); }

TutorialMaskUILoader* loadAndShow()
{
return Field<"_loadAndShow", TutorialMaskUILoader*>();
}
{ return Field<"_loadAndShow", TutorialMaskUILoader*>(); }
};

// TouchKit's global pointer-input gate. Tutorials hold it while only their highlighted control may receive input.
struct TouchKit {
using Class = il2cpp::Class<"TouchKit", "", "TouchKit">;

static bool BlockTouch()
{
return Class::Field<"BlockTouch", bool>();
}
{ return Class::Field<"BlockTouch", bool>(); }

static void SetBlockTouch(bool blocked)
{
Class::SetField<"BlockTouch">(blocked);
}
{ Class::SetField<"BlockTouch">(blocked); }
};

// Fabric.EventManager, the game's sound middleware. Its shorter PostEvent overloads funnel into the
Expand Down
Loading