Exemplo n.º 1
0
        public override void _Ready()
        {
            _hoverSignifier   = GetNode <TextureRect>("HoverSignifier");
            itemTextureButton = GetNode <TextureButton>("MarginContainer/Item");

            _hoverSignifier.Visible = false;
        }
Exemplo n.º 2
0
    //int[] monsterIdOptions;

    /// <summary>
    /// Initialization
    /// </summary>
    public override void _Ready()
    {
        editLevelBL = new EditLevelBL();

        timeLimitOptions = new int[] { 30, 40, 50, 60, 70, 80, 90, 100, 110, 120 };
        //monsterIdOptions = new int[] { 1, 2, 3, 4, 5 };

        timeLimitBtn  = GetNode <OptionButton>("TimeLimit");
        levelNameLine = GetNode <LineEdit>("LevelName");
        //monsterIdBtn = GetNode<OptionButton>("MonsterId");
        errorMessageLabel = GetNode <Label>("ErrorMessageLabel");

        arrowLeft     = GetNode <TextureButton>("MonsterSelect/ArrowLeft");
        arrowRight    = GetNode <TextureButton>("MonsterSelect/ArrowRight");
        charSprite    = GetNode <AnimatedSprite>("MonsterSelect/MonsterSprite");
        animationList = new List <string>();
        animationList.Add("Idle");

        restoreOriginal = GetNode <TextureButton>("RestoreOriginal");

        AddOptions();

        //testing
        //Global.StudentId = 23;
        //Global.CustomLevelId = 10;
        //testing

        DisplayLevelInit();
    }
Exemplo n.º 3
0
    /// <summary>
    /// Handles the logic when the countdown animation finishes
    /// </summary>
    private void _on_Countdown_animation_finished()
    {
        //Unhide
        charSprite.Visible    = true;
        monsterSprite.Visible = true;
        Label questionTitle = GetNode <Label>("QuestionTitle");

        questionTitle.Visible = true;
        levelTitle.Visible    = true;
        Control ctr2 = GetNode <Control>("Buttons");

        ctr2.Visible          = true;
        timerLabel.Visible    = true;
        questionLabel.Visible = true;
        TextureButton skillBtn = GetNode <TextureButton>("SkillBtn");

        skillBtn.Visible = true;
        loadSkillIcon();
        //Hide
        Control versus = GetNode <Control>("Versus");

        versus.Visible = false;

        countDown.Visible = false;
        timer.Start();
    }
Exemplo n.º 4
0
    float dangerZonePositionModifier = 1.255f; // hardcoded number, how much the x position of the zone is divded

    public override void _Ready()
    {
        if (laneImg == null)
        {
            GD.PushError("You must set laneImg for Lane!");
            GD.PrintStack();
            GetTree().Quit(1);
        }

        TextureButton button = GetNode <TextureButton>("Button");

        spawnPoint = button.RectGlobalPosition + new Vector2(70, 30);

        GetNode <Sprite>("Sprite").Texture = laneImg;
        Events.roundWon         += OnRoundWon;
        Events.dinoDiedInstance += OnDinoDiedInstance;

        // we're an empty lane, don't allow deploys
        if (Curve.GetPointCount() == 0)
        {
            button.Hide();
            return;
        }

        dangerZoneCollision = GetNode("DangerZone").GetNode <CollisionShape2D>("DangerZoneCollision");
        var dangerBox = new RectangleShape2D(); // make a hitbox for the danger zone

        dangerZoneCollision.Shape = dangerBox;

        // divide by 1/2 since that's how extents work
        // divide x by 1/3 since we want it to be that big
        dangerBox.Extents            = new Vector2(laneImg.GetSize().x / 2 / 3, laneImg.GetSize().y / 2 * GetNode <Sprite>("Sprite").Scale.y);
        dangerZoneCollision.Position = new Vector2(this.GlobalPosition.x / dangerZonePositionModifier, 0);
    }
Exemplo n.º 5
0
 void loadComponents()
 {
     teamAlias    = (Label)GetNode("TeamAlias");
     rate         = (Rate)GetNode("Rate");
     acceptButton = (TextureButton)GetNode("AcceptButton");
     refuseButton = (TextureButton)GetNode("RefuseButton");
 }
Exemplo n.º 6
0
        public void init()
        {
            mTextureButtons.Clear();
            Items.Clear();

            Items.Add(mSelectedButton);

            for (int i = 0; i < SimTerrainType.mActiveWorkingSet.Count; i++)
            {
                TerrainTextureDef d      = SimTerrainType.getFromNumber(SimTerrainType.mActiveWorkingSet[i]);
                TextureButton     button = new TextureButton(i, this, d.TypeName);
                button.TextureName = CoreGlobals.getWorkPaths().mTerrainTexturesPath + @"\" + d.Theme + @"\" + d.TextureName + ".tga";
                Items.Add(button);
                mTextureButtons.Add(button);
            }
            mSelectedButton.Image = mTextureButtons[0].Image;

            if (mLoadPaletteButton == null)
            {
                mLoadPaletteButton        = new ToolStripButton();
                mLoadPaletteButton.Text   = "Load Palette";
                mLoadPaletteButton.Click += new EventHandler(mLoadPaletteButton_Click);
            }


            if (mSavePaletteButton == null)
            {
                mSavePaletteButton        = new ToolStripButton();
                mSavePaletteButton.Text   = "Save Palette";
                mSavePaletteButton.Click += new EventHandler(mSavePaletteButton_Click);
            }

            Items.Add(mLoadPaletteButton);
            Items.Add(mSavePaletteButton);
        }
Exemplo n.º 7
0
    public override void _PhysicsProcess(float delta)
    {
        if (Input.IsActionJustPressed("ui_pause"))
        {
            this.Hide();
            GetTree().Paused = false;
        }
        cont  = (TextureButton)GetChild(0).GetChild(0).GetNode("Continue");
        start = (TextureButton)GetChild(0).GetChild(0).GetNode("Start");
        quit  = (TextureButton)GetChild(0).GetChild(0).GetNode("Quit");

        if (cont.IsHovered())
        {
            cont.GrabFocus();
        }

        if (start.IsHovered())
        {
            start.GrabFocus();
        }

        if (quit.IsHovered())
        {
            quit.GrabFocus();
        }
    }
Exemplo n.º 8
0
    private List <TextureButton> createStars()
    {
        Random rand = new Random();
        List <TextureButton> stars = new List <TextureButton>();

        Texture classO = (Texture)GD.Load("res://Scenes/Galaxy/Art/Class_O.png");

        HashSet <Vector2> positions = new HashSet <Vector2>();

        for (int i = 0; i < 10; i++)
        {
            TextureButton star = new TextureButton();
            star.TextureNormal = classO;

            star.RectPosition = new Vector2((rand.Next(0, 26) << 5), (rand.Next(0, 26)) << 5);
            star.HintTooltip  = "INFO";

            while (positions.Contains(star.RectPosition))
            {
                star.RectPosition = new Vector2((rand.Next(0, 26) << 5), (rand.Next(0, 26)) << 5);
                star.HintTooltip  = "INFO";
            }

            stars.Add(star);
            positions.Add(star.RectPosition);
        }

        return(stars);
    }
Exemplo n.º 9
0
    public override void _Ready()
    {
        compoundBars = GetTree().GetNodesInGroup("CompoundBar");

        mouseHoverPanel              = GetNode <PanelContainer>(MouseHoverPanelPath);
        pauseButton                  = GetNode <TextureButton>(PauseButtonPath);
        resumeButton                 = GetNode <TextureButton>(ResumeButtonPath);
        leftPanels                   = GetNode <VBoxContainer>(LeftPanelsPath);
        agentsPanel                  = GetNode <Control>(AgentsPanelPath);
        environmentPanel             = GetNode <NinePatchRect>(EnvironmentPanelPath);
        environmentPanelBarContainer = GetNode <GridContainer>(EnvironmentPanelBarContainerPath);
        glucoseBar                   = GetNode <ProgressBar>(GlucoseBarPath);
        ammoniaBar                   = GetNode <ProgressBar>(AmmoniaBarPath);
        phosphateBar                 = GetNode <ProgressBar>(PhosphateBarPath);
        hydrogenSulfideBar           = GetNode <ProgressBar>(HydrogenSulfideBarPath);
        ironBar                    = GetNode <ProgressBar>(IronBarPath);
        compoundsPanel             = GetNode <NinePatchRect>(CompoundsPanelPath);
        CompoundsPanelBarContainer = GetNode <GridContainer>(CompoundsPanelBarContainerPath);
        oxytoxyBar                 = GetNode <ProgressBar>(OxytoxyBarPath);
        atpBar    = GetNode <TextureProgress>(AtpBarPath);
        healthBar = GetNode <TextureProgress>(HealthBarPath);
        ammoniaReproductionBar   = GetNode <TextureProgress>(AmmoniaReproductionBarPath);
        phosphateReproductionBar = GetNode <TextureProgress>(PhosphateReproductionBarPath);
        atpLabel        = GetNode <Label>(AtpLabelPath);
        hpLabel         = GetNode <Label>(HpLabelPath);
        menu            = GetNode <Control>(MenuPath);
        animationPlayer = GetNode <AnimationPlayer>(AnimationPlayerPath);
        hoveredItems    = GetNode <VBoxContainer>(HoveredItemsContainerPath);
        populationLabel = GetNode <Label>(PopulationLabelPath);
        patchLabel      = GetNode <Label>(PatchLabelPath);
        editorButton    = GetNode <TextureButton>(EditorButtonPath);
        helpScreen      = GetNode <Control>(HelpScreenPath);

        OnEnterStageTransition();
    }
Exemplo n.º 10
0
        /// <summary>
        /// Initializes the control.
        /// </summary>
        /// <param name="teammate">Teammate model to initialize the control from.</param>
        /// <param name="addIcon">Texture of the add icon.</param>
        /// <param name="removeIcon">Texture of the remove icon.</param>
        public void Init(Teammate teammate, Texture addIcon, Texture removeIcon)
        {
            Teammate = teammate;
            var actionIcon  = teammate.IsAddedToTeam ? removeIcon : addIcon;
            var usedTexture = teammate.IsAddedToTeam ? teammate.SmallTexture : teammate.BigTexture;

            _verticalContainer = GetNode <VBoxContainer>("VerticalContainer");
            _teammateButton    = _verticalContainer.GetNode <TextureButton>("TeammateButton");
            _actionIcon        = _teammateButton.GetNode <TextureRect>("ActionIcon");
            _teammateName      = _verticalContainer.GetNode <Label>("CenterContainer/TeammateName");

            _teammateButton.TextureNormal = usedTexture;

            var teammateButtonSize = _teammateButton.TextureNormal.GetSize();

            this.RectMinSize = _teammateButton.TextureNormal.GetSize();

            _teammateName.Text  = teammate.Name;
            _actionIcon.Texture = teammate.IsAddedToTeam ? actionIcon : actionIcon;

            var actionIconSize = _actionIcon.Texture.GetSize();

            _actionIcon.SetPosition(new Vector2(teammateButtonSize.x - actionIconSize.x, teammateButtonSize.y - actionIconSize.y));

            _teammateButton.Connect("pressed", this, nameof(OnClick));

            _verticalContainer.Set("custom_constants/separation", VerticalContainerSeparation);
            _teammateName.AddFontOverride("font", Font);

            if (LabelColor.HasValue)
            {
                _teammateName.AddColorOverride("font_color", LabelColor.Value);
            }
        }
Exemplo n.º 11
0
 public override void _Ready()
 {
     base._Ready();
     _leftButton       = GetNode <TextureButton>("LeftButton");
     _rightButton      = GetNode <TextureButton>("RightButton");
     _contentContainer = GetNode <HBoxContainer>("ContentContainer");
 }
Exemplo n.º 12
0
 // Called when the node enters the scene tree for the first time.
 public override void _Ready()
 {
     label      = GetNode <Label>("TextureButton/Label");
     button     = GetNode <TextureButton>("TextureButton");
     starSprite = GetNode <Sprite>("Sprite");
     Setup();
 }
Exemplo n.º 13
0
 /// <summary>
 /// Initialization
 /// </summary>
 public override void _Ready()
 {
     world1Btn = GetNode <TextureButton>("Bg/World1");
     world2Btn = GetNode <TextureButton>("Bg/World2");
     world3Btn = GetNode <TextureButton>("Bg/World3");
     worldBl   = new WorldBL();
     DisableInaccessibleWorlds();
 }
    public override void _Ready()
    {
        camera      = GetNode <Camera>("Camera");
        floor_check = GetNode <RayCast>("floor_check");

        screen_lock_unlock_button = GetNode <TextureButton>("lock_button");
        screen_lock_unlock_button.Connect("pressed", this, nameof(screen_lock));
    }
Exemplo n.º 15
0
        public override void _Ready()
        {
            _resumeButton   = GetNode <TextureButton>(resumeButtonNodePath);
            _mainMenuButton = GetNode <TextureButton>(mainMenuButtonNodePath);

            _resumeButton.Connect("pressed", this, nameof(HidePauseMenu));
            _mainMenuButton.Connect("pressed", this, nameof(HandleMainMenuClicked));
        }
Exemplo n.º 16
0
 void loadComponents()
 {
     opponentAlias = (Label)GetNode("OpponentAlias");
     rate          = (Rate)GetNode("Rate");
     kit           = (Sprite)GetNode("Kit");
     noMatch       = (Sprite)GetNode("NoMatch");
     acceptButton  = (TextureButton)GetNode("AcceptButton");
 }
Exemplo n.º 17
0
    public override void _Ready()
    {
        bird       = (Bird)GetNode("/root/MainNode/Bird");
        player     = (AnimationPlayer)GetNode("AnimationPlayerGameOver");
        ButtonPlay = (TextureButton)GetNode("ContainerButtons/ButtonPlay");

        bird.OnStateChanged += ShowGameOver;
    }
Exemplo n.º 18
0
 public override void _Ready()
 {
     _soundButton = GetNode <TextureButton>("SoundButton");
     _exitButton  = GetNode <Button>("ExitGame");
     _exitButton.Connect("pressed", this, nameof(exitGame));
     _soundButton.Connect("pressed", this, nameof(changeSpeaker));
     _speaker    = GetNode <Sprite>("Speaker");
     _speakerOff = GetNode <Sprite>("SpeakerOff");
 }
 protected void InitNewMapButton()
 {
     NewMapButton = new TextureButton(UI.GetInterface(Name), Content.Load<Texture2D>("UI/New"), new Vector2(Game1.ScreenWidth / 3.5f - 150, Game1.ScreenHeight / 2 - 200), new Vector2(300, 400),
                                      Vector2.Zero, null, null, null, true, ButtonListSide.LeftRight, false, true, true, true);
     NewMapButton.Clicked += (sender) =>
     {
         GameStateManager.TransitionState(GameStateManager.NewMapPrefs);
     };
 }
Exemplo n.º 20
0
    public override void _Ready()
    {
        main         = GetTree().CurrentScene as MainRoot;
        pauseButton  = GetNode <TextureButton>("PauseButton");
        buttons      = GetNode <HBoxContainer>("Buttons");
        settingMenue = GetTree().CurrentScene.GetNode <Control>("Hud/SettingMenue");

        buttons.Hide();
    }
 protected void InitLoadMapButton()
 {
     LoadMapButton = new TextureButton(UI.GetInterface(Name), Content.Load<Texture2D>("UI/Load"), new Vector2(Game1.ScreenWidth - Game1.ScreenWidth / 3.5f - 200, Game1.ScreenHeight / 2 - 175), new Vector2(400, 350),
                                      Vector2.Zero, null, null, null, true, ButtonListSide.LeftRight, false, true, true, true);
     LoadMapButton.Clicked += (sender) =>
     {
         if (Map.ReLoad())
             GameStateManager.TransitionState(GameStateManager.Editor);
     };
 }
Exemplo n.º 22
0
        public GameOverScene(SpriteFont font) : base(font)
        {
            OkButton          = ButtonFactory.CreateButton(font, "Ok");
            OkButton.Position = new Vector2(Game.StandardWidth / 2.0f - OkButton.Rectangle.Width / 2.0f,
                                            Game.StandardHeight / 2.0f - OkButton.Rectangle.Height / 2.0f);

            _messagePosition = new Vector2(Game.StandardWidth / 2.0f - font.MeasureString(_message).X / 2.0f,
                                           Game.StandardHeight / 2.0f - font.MeasureString(_message).X / 2.0f);
            _messagePosition -= new Vector2(0, 350);
        }
Exemplo n.º 23
0
    public override void _Ready()
    {
        // GetNode("Menu/CenterRow/Buttons").Connect("pressed", this, nameof(OnButtonPressed), new Godot.Collections.Array() { button.scene_to_load });
        this.game      = (Game)GetNode("/root/Game");
        this.replayBtn = (TextureButton)GetNode("UI/ReplayBtn");
        this.exitBtn   = (TextureButton)GetNode("UI/ExitBtn");

        replayBtn.Connect("pressed", this, nameof(replayButtonPressed));
        exitBtn.Connect("pressed", this, nameof(exitButtonPressed));
    }
Exemplo n.º 24
0
 // Called when the node enters the scene tree for the first time.
 public override void _Ready()
 {
     //
     globale = (Global)GetNode("/root/Global");
     //
     bt_start_arcade    = (TextureButton)GetNode("Bt_play_arcade");
     bt_start_adventure = (TextureButton)GetNode("Bt_play_adventure");
     bt_settings        = (TextureButton)GetNode("Bt_settings");
     bt_quit            = (TextureButton)GetNode("Bt_quit");
 }
Exemplo n.º 25
0
    public override void _Ready()
    {
        ConfirmButton = (TextureButton)GetNode("Confirm");
        DownButton    = (TextureButton)GetNode("Down");
        UpButton      = (TextureButton)GetNode("Up");

        HUD.ConfirmButton.Connect("pressed", this, nameof(onConfirmPressed));
        HUD.DownButton.Connect("pressed", this, nameof(onDownPressed));
        HUD.UpButton.Connect("pressed", this, nameof(onUpPressed));
    }
Exemplo n.º 26
0
    // Member variables here, example:
    // private int a = 2;
    // private string b = "textvar";

    // public override void _Ready() { }

    public override void _PhysicsProcess(float delta)
    {
        if (Input.IsActionPressed("ui_pause"))
        {
            GetTree().Paused = true;
            GetNode <Control>("InGameMenu").Show();
            cont = (TextureButton)GetNode <Control>("InGameMenu").GetChild(0).GetChild(0).GetNode("Continue");
            cont.GrabFocus();
            GetNode <AnimatedSprite>("EnemyTwo2").FlipH = true;;
        }
    }
Exemplo n.º 27
0
        /// <summary>
        /// シーンの初期化処理
        /// </summary>
        /// <param name="data">各シーンで共用するクラス</param>
        public void Init(CommonData data)
        {
            state           = State.Start;
            Data            = data;
            Rand            = new Random();
            LogoImageHandle = TextureAsset.Register("Logo", "../../../images/TitleLogo.png");
            var buttonFont  = FontAsset.Register("Default", size: 40);
            var textBoxFont = FontAsset.Register("TextBox", size: 20);
            var blueColor   = DX.GetColor(0, 103, 167);

            StartButton = new TextureButton(textureHandle: TextureAsset.Register(assetName: "ButtonBase1", path: "../../../images/ButtonBase1.png"),
                                            x: 440, y: 500, width: 400, height: 50, text: "はじめる", textColor: blueColor, fontHandle: buttonFont);

            EndButton      = new TextureButton(TextureAsset.GetTextureHandle("ButtonBase1"), 440, 570, 400, 50, "終わる", blueColor, buttonFont);
            BackButton     = new TextureButton(TextureAsset.GetTextureHandle("ButtonBase1"), 440, 500, 400, 50, "戻る", blueColor, buttonFont);
            MakeRoomButton = new TextureButton(TextureAsset.GetTextureHandle("ButtonBase1"), 440, 570, 400, 50, "部屋を作る", blueColor, buttonFont);
            JoinRoomButton = new TextureButton(TextureAsset.GetTextureHandle("ButtonBase1"), 440, 640, 400, 50, "部屋に参加する", blueColor, buttonFont);
            FindRoomButton = new TextureButton(TextureAsset.GetTextureHandle("ButtonBase1"), 1000, 570, 100, 50, "探す", blueColor, buttonFont);
            SubmitButton   = new TextureButton(TextureAsset.GetTextureHandle("ButtonBase1"), 490, 780, 300, 50, "確定", blueColor, buttonFont);

            var grayColor = DX.GetColor(50, 50, 50);

            roomName              = new TextBox(490, 570, 500, 50, textBoxFont);
            roomName.FrameColor   = grayColor;
            roomName.Text         = $"Room{Rand.Next(100, 100000)}";
            playerName            = new TextBox(490, 640, 500, 50, textBoxFont);
            playerName.FrameColor = grayColor;
            playerName.Text       = $"Player{Rand.Next(100, 100000)}";
            playerNum             = new TextBox(490, 710, 500, 50, textBoxFont);
            playerNum.FrameColor  = grayColor;
            playerNum.Text        = "4";

            IpAddressText       = new TextBox(0, 0, 400, 50, textBoxFont);
            IpAddressText.Text  = Data.Address;
            PortNumberText      = new TextBox(0, 50, 400, 50, textBoxFont);
            PortNumberText.Text = Data.Port.ToString();
            SaveIpAddressButton = new TextureButton(TextureAsset.GetTextureHandle("ButtonBase1"),
                                                    0, 100, 400, 50, "設定を反映する", DX.GetColor(0, 103, 167), buttonFont);

            IsWaitJoin  = false;
            LoadTexture = new TextureFade(TextureAsset.Register("LoadImage", "../../../images/TitleLoad.png"), 590, 600, 100, 100, 60, 60, 1);

            SocketManager.SetAddress(IpAddressText.Text, int.Parse(PortNumberText.Text));
            FindRoomWindow = new FindRoomWindow(340, 180, 600, 610);

            DX.SetBackgroundColor(255, 255, 255);             // 背景色を白に設定

            // 文字入力時の各パーツの色設定
            DX.SetKeyInputStringColor(DX.GetColor(50, 50, 50), DX.GetColor(50, 50, 50), DX.GetColor(255, 255, 255),
                                      DX.GetColor(50, 50, 50), DX.GetColor(50, 50, 50), DX.GetColor(0, 55, 255),
                                      DX.GetColor(50, 50, 50), DX.GetColor(50, 50, 50), DX.GetColor(50, 50, 50),
                                      DX.GetColor(50, 50, 50), DX.GetColor(50, 50, 50), DX.GetColor(0, 55, 255),
                                      DX.GetColor(0, 55, 255), DX.GetColor(0, 55, 255), DX.GetColor(0, 55, 255));
        }
Exemplo n.º 28
0
    /// <summary>
    /// Disable the Worlds that have not been unlocked
    /// </summary>
    private void DisableInaccessibleWorlds()
    {
        int completedWorldCount = worldBl.GetCompletedWorldCount();
        int totalWorldCount     = worldBl.GetTotalWorldCount();

        for (int i = totalWorldCount; i > completedWorldCount + 1; i--)
        {
            TextureButton disabler = GetNode <TextureButton>("Bg/World" + i);
            disabler.Disabled = true;
        }
    }
Exemplo n.º 29
0
 public override void _Ready()
 {
     secondSkyGradient = (Sprite)GetNode("ControlsBackground");
     controlsDesc      = (Sprite)GetNode("ControlsDesc");
     play                = (TextureButton)GetNode("Play");
     controls            = (TextureButton)GetNode("Controls");
     quit                = (TextureButton)GetNode("Quit");
     startScene          = (AnimationPlayer)GetNode("StartScene");
     controlsQuit        = (TouchScreenButton)GetNode("ControlsBack");
     GameData.currentMap = this;
 }
Exemplo n.º 30
0
 void initializeComponents()
 {
     leagueName        = (Label)GetNode("Topbar").GetNode("LeagueName");
     scrollContainer   = (ScrollContainer)GetNode("ScrollContainer");
     flag              = (Sprite)GetNode("Topbar").GetNode("Flag");
     switchDownButton  = (TextureButton)GetNode("Topbar").GetNode("SwitchDownButton");
     switchLeftButton  = (TextureButton)GetNode("Topbar").GetNode("SwitchLeftButton");
     switchRightButton = (TextureButton)GetNode("Topbar").GetNode("SwitchRightButton");
     switchUpButton    = (TextureButton)GetNode("Topbar").GetNode("SwitchUpButton");
     teamList          = (VBoxContainer)GetNode("ScrollContainer").GetNode("TeamList");
 }
Exemplo n.º 31
0
        // Drag resizing and moving code is mostly taken from Godot's WindowDialog.

        protected override void Initialize()
        {
            base.Initialize();

            var header = GetChild("Header");

            CloseButton            = header.GetChild <TextureButton>("CloseButton");
            CloseButton.OnPressed += CloseButtonPressed;

            Contents = GetChild("Contents");
        }
Exemplo n.º 32
0
 void loadComponents()
 {
     careerButton      = (TextureButton)GetNode("CareerButton");
     creditsButton     = (TextureButton)GetNode("Panel").GetNode("CreditsButton");
     editStadiumButton = (TextureButton)GetNode("EditStadiumButton");
     exitButton        = (TextureButton)GetNode("Panel").GetNode("ExitButton");
     quickMatchButton  = (TextureButton)GetNode("QuickMatchButton");
     settingsButton    = (TextureButton)GetNode("Panel").GetNode("SettingsButton");
     tournamentButton  = (TextureButton)GetNode("TournamentButton");
     webButton         = (TextureButton)GetNode("Panel").GetNode("WebButton");
 }
 protected void InitCurrentItemTextureButton()
 {
     CurrentItem = new TextureButton(UI.GetInterface(Name), Map.Settings.AccessibleTiles.PlaceholderTile.Tex,
         new Vector2(MiniMap.BasePosition.X + 210, MiniMap.BasePosition.Y + MiniMap.Size.Y + 25), new Vector2(100, 100), new Vector2(UI.BGOffset),
         new Color(origin.R, origin.G, origin.B, 100), null, null, false, ButtonListSide.LeftRight, true, false);
 }