public StateFundingApplicationLauncher()
 {
     View = new StateFundingHubView ();
       Texture2D Image = new Texture2D (2, 2);
       Image.LoadImage (File.ReadAllBytes ("GameData/StateFunding/assets/cashmoney.png"));
       ApplicationLauncherButton Button = ApplicationLauncher.Instance.AddModApplication (onTrue, onFalse, onHover, onHoverOut, onEnable, onDisable, ApplicationLauncher.AppScenes.SPACECENTER, Image);
 }
        public StateFundingApplicationLauncher()
        {
            View = new StateFundingHubView();
            Texture2D Image = new Texture2D(2, 2);

            Image.LoadImage(File.ReadAllBytes("GameData/StateFunding/assets/cashmoney.png"));
            ApplicationLauncherButton Button = ApplicationLauncher.Instance.AddModApplication(onTrue, onFalse, onHover, onHoverOut, onEnable, onDisable, ApplicationLauncher.AppScenes.SPACECENTER, Image);
        }
Пример #3
0
        public void Start()
        {
            View = new StateFundingHubView();
            //Texture2D Image = new Texture2D(2, 2);
            //Image.LoadImage(File.ReadAllBytes("GameData/StateFunding/assets/cashmoney.png"));
            //Button = ApplicationLauncher.Instance.AddModApplication(onTrue, onFalse, onHover, onHoverOut, onEnable, onDisable, ApplicationLauncher.AppScenes.SPACECENTER, Image);

            toolbarControl = gameObject.AddComponent <ToolbarControl>();
            toolbarControl.AddToAllToolbars(onTrue, onFalse,
                                            ApplicationLauncher.AppScenes.SPACECENTER,
                                            MODID,
                                            "stateFundingButton",
                                            "StateFunding/assets/cashmoney_38",
                                            "StateFunding/assets/cashmoney_24",
                                            MODNAME
                                            );
        }