Exemple #1
0
 public static void Say(IRocketPlayer caller, string message, Color color, params object[] objs)
 {
     if (caller is ConsolePlayer)
     {
         RocketLogger.Log(Instance.Translate(message, objs), ConsoleColor.Yellow);
     }
     else
     {
         GameHook.Say(caller, Instance.Translate(message, objs), color);
     }
 }
        public MainWindow()
        {
            InitializeComponent();
            label_Version.Content = $" v{Config.VERSION}";

            // Config - singleton
            Config.GetInstance().SeedChanged += SeedChanged;

            game = new GameHook(this);

            // UI
            ToggleButton(ButtonNewRng, false);
            ButtonDev.Visibility = DEBUG_MODE ? Visibility.Visible : Visibility.Collapsed;
            ButtonDev.IsEnabled  = DEBUG_MODE;

            //// HotKeys
            kbHook.KeyDown += InputKeyDown;
            kbHook.HookedKeys.Add(Keys.F7);

            LogStatus("Idle");
        }