mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 06:51:36 +00:00
17 lines
407 B
C#
17 lines
407 B
C#
using QSB.Messaging;
|
|
using QSB.Player;
|
|
|
|
namespace QSB.Tools.TranslatorTool.Messages;
|
|
|
|
internal class TranslatorScrollMessage : QSBMessage<float>
|
|
{
|
|
public TranslatorScrollMessage(float scrollPos) : base(scrollPos) { }
|
|
|
|
public override void OnReceiveRemote()
|
|
{
|
|
var player = QSBPlayerManager.GetPlayer(From);
|
|
var translator = (QSBNomaiTranslator)player.Translator;
|
|
translator.SetScroll(Data);
|
|
}
|
|
}
|