public BubbleGuy() { #if LOG_DEBUG SDV_Logger.LogTrace("BubbleGuy", " empty contructor called."); #endif base.forceOneTileWide.Value = true; base.name.Value = BubbleGuyStatics.BubbleGuyName; //_ModPath.Set(""); //Text = "Blank"; //base.NetFields.AddField(_Text); //base.NetFields.AddField(_IsThought); }
public BubbleGuy(bool bIsThought, string sText, Texture2D background) : this() { SDV_Logger.DumpObject("background", background); //ModPath.Set(sModDir); _IsThought.Value = bIsThought; _IsThought.MarkDirty(); _PlayerId.Value = Game1.player.UniqueMultiplayerID; _PlayerId.MarkDirty(); sbBackground = new StardewBitmap(background); sbBackground.ResizeImage(300, 200); sbBackground.FillArray(ref _BubbleImageData); #if LOG_DEBUG monitor.Log($"_BubbleImageData length: {_BubbleImageData.Count}", LogLevel.Info); #endif _BubbleImageData.MarkDirty(); Text = sText; _bThoughtLoaded = _IsThought.Value; }
public override void Entry(IModHelper helper) { // // check for Stardew Web, if installed // do not load this mod // if (helper.ModRegistry.IsLoaded("prism99.stardewweb")) { Monitor.Log("Stardew Web is installed, this mod is not needed an will not be loaded.", LogLevel.Info); } else { SDV_Logger.Init(Monitor, helper.DirectoryPath, true); StardewThreadSafeLoader.Initialize(helper); SMAPIHelpers.Initialize(helper); BubbleGuyStatics.Initialize(helper.DirectoryPath); Monitor.Log($"Asset directory: {BubbleGuyStatics.AssetsPath}", LogLevel.Info); oManager = new BubbleGuyManager(BubbleGuyStatics.SavesPath, BubbleGuyStatics.AssetsPath, helper, Monitor, true); oManager.StartBubbleChat(ModManifest.UniqueID); } }