public override void Entry(IModHelper helper)
        {
            _config = helper.ReadConfig <FcConfig>();


            //Events
            //helper.Events.GameLoop.DayStarted += OnDayStarted;
            helper.Events.Input.ButtonPressed += OnButtonPressed;

            //Add the commands we will need.
            //helper.ConsoleCommands.Add("fc_restore", "Restores your farm back to before the clean was ran.", Restore);
        }
 public LinuxPlatform()
 {
     fcconfig = Fc.InitLoadConfigAndFonts();
 }
Exemple #3
0
 public bool ConfigSubstitute(FcConfig config, FcMatchKind kind)
 {
     return(Native.FcConfigSubstitute(config.Handle, Handle, kind) != 0);
 }
Exemple #4
0
 public FcPattern Match(FcConfig config, out FcResult result)
 {
     return(new FcPattern(Native.FcFontMatch(config.Handle, Handle, out result)));
 }
Exemple #5
0
 public LinuxPlatform()
 {
     fcconfig = Fc.InitLoadConfigAndFonts();
     fcconfig.SetCurrent();
 }
Exemple #6
0
 public static FcFontSet FromList(FcConfig config, FcPattern pat, FcObjectSet os)
 {
     return(new FcFontSet(Native.FcFontList(config.Handle, pat.Handle, os.Handle)));
 }