Ejemplo n.º 1
0
            public ShipButton(ShipSelection parent, Library.ShipGenerator gen)
            {
                Image             = Root.Singleton.Material("img/customizeUI/ship_list_button_on.png");
                HoveredImage      = Root.Singleton.Material("img/customizeUI/ship_list_button_select2.png");
                DisabledImage     = Root.Singleton.Material("img/customizeUI/ship_list_button_off.png");
                LockImage         = Root.Singleton.Material("img/customizeUI/box_lock_on.png");
                HoveredLockImage  = Root.Singleton.Material("img/customizeUI/box_lock_selected.png");
                DisabledLockImage = Root.Singleton.Material("img/customizeUI/box_lock_off.png");

                HoverSound = Root.Singleton.Sound("audio/waves/ui/select_light1.wav");

                this.parent = parent;

                GeneratorName = gen.Name;
                ShipImage     = Root.Singleton.Material(gen.MiniGraphic);
                Locked        = !gen.Unlocked;
                Enabled       = true;
            }
Ejemplo n.º 2
0
            public ShipButton(ShipSelection parent, Library.ShipGenerator gen)
            {
                Image = Root.Singleton.Material("img/customizeUI/ship_list_button_on.png");
                HoveredImage = Root.Singleton.Material("img/customizeUI/ship_list_button_select2.png");
                DisabledImage = Root.Singleton.Material("img/customizeUI/ship_list_button_off.png");
                LockImage = Root.Singleton.Material("img/customizeUI/box_lock_on.png");
                HoveredLockImage = Root.Singleton.Material("img/customizeUI/box_lock_selected.png");
                DisabledLockImage = Root.Singleton.Material("img/customizeUI/box_lock_off.png");

                HoverSound = Root.Singleton.Sound("audio/waves/ui/select_light1.wav");

                this.parent = parent;

                GeneratorName = gen.Name;
                ShipImage = Root.Singleton.Material(gen.MiniGraphic);
                Locked = !gen.Unlocked;
                Enabled = true;
            }