Exemple #1
0
        // --------------------- MonoBehaviour callbacks ------------------------

        public void Awake()
        {
            _instance = this;
            PluginLogger.Instance.Debug("Awake ToolbarButton");

            consoleWindow       = gameObject.AddComponent <ConsoleWindow>();
            moduleManagerWindow = gameObject.AddComponent <ModuleManagerWindow>();
        }
Exemple #2
0
        public ToolbarWindow(int objectId, CommonStyles commonStyles, ConsoleWindow consoleWindow,
                             ModuleManagerWindow moduleManagerWindow)
        {
            this.objectId            = objectId;
            this.commonStyles        = commonStyles;
            this.consoleWindow       = consoleWindow;
            this.moduleManagerWindow = moduleManagerWindow;

            Assembly assembly = Assembly.GetExecutingAssembly();

            windowTitle = $"KontrolSystem {assembly.GetName().Version}";

            startButtonTexture = GameDatabase.Instance.GetTexture("KontrolSystem/GFX/start", false);
            stopButtonTexture  = GameDatabase.Instance.GetTexture("KontrolSystem/GFX/stop", false);
        }