CefMV

RPG Maker MV for CefSharp

MIT License

Stars
5

CefMV

You can be embedded your RPG Maker MV game in .NET process.

Native API

These API can play the sound file for ogg vorbis using C# NAudio 1.8.4 library.

RSAudio.loadMusic(fileName, id);
RSAudio.loadSound(fileName, id);
RSAudio.playMusic(id);
RSAudio.playSound(id);
RSAudio.stopMusic(id);
RSAudio.stopSound(id);
RSAudio.setMusicVolume(f);
RSAudio.dispose();

If the NAudio initialization was successful, you can be using the following functions (This is an Audio subsystem.)

// load the sound file called 'deepnight.ogg' from audio/bgm/ folder.
RSAudio.loadMusic("deepnight.ogg", "BGM");
// Play the sound file that has the id called 'BGM'
RSAudio.playMusic("BGM");
// Control the music volume as the value between 0.0 and 100.0.
RSAudio.setMusicVolume(50.0); 

To set the display resolution, you can now these functions instead of NwJs. But this function does not do much at the moment. This is just test functions.

RSTools.showMessageBox(title, content, yesCallback, noCallback);
RSTools.focus();
RSTools.setGameTitle(title);
RSTools.setScreenSize(width, height);
RSTools.updateWindowSettings();
// Change the main game title.
RSTools.setGameTitle("My Game");
RSTools.updateWindowSettings();

// Show the message box that contains two buttons called 'yes' or 'no'.
RSTools.showMessageBox("My Game", "Capture the screenshot?", function() {
    // yes callback
}, function() {
    // no callback
});