Example #1
0
        public void Draw()
        {
            spriteBatch.Draw(AllWords.WordsLists[CategoryIndex][CurrentWordIndex].Image, new Vector2(320, 64), null, Color.White, 0,
                             new Vector2(0, 0), 1f, SpriteEffects.None, 0);
            spriteBatch.Draw(BackGround, new Vector2(0, 0), null, Color.White, 0,
                             new Vector2(0, 0), 1f, SpriteEffects.None, 0);
            HomeButton.Draw();
            ArrowRight.Draw();
            if (!UsedHint)
            {
                HintButton.Draw();
            }
            else
            {
                HintButtonUsed.Draw();
            }

            foreach (Block block in BlockList)
            {
                block.Draw();
            }
            foreach (Block block in EmptyList)
            {
                block.Draw();
            }
        }
Example #2
0
        private void HintButton_Click(object sender, RoutedEventArgs e)
        {
            HintButton.IsEnabled = false;
            var word = Game.GetHint();

            if (word == null)
            {
                return;
            }
            new MessageDialog(string.Format("{0}: \"{1}\"", Strings.textHintText, word.Translated),
                              Strings.textHint).ShowAsync();
            HintButton.SetValue(AutomationProperties.NameProperty, string.Format("{0} ({1})", Strings.textHint, Game.HintsLeft));
        }
        private void LoadHintButtons()
        {
            HintButton dataHintButton = new HintButton(dataL.Left + dataL.Size.Width, dataL.Top - 5, String.Format("A fájl betöltése után lehetősége van kiválasztani,{0}mely adatok megoszlására kíváncsi!", newline));
            Controls.Add(dataHintButton);

            HintButton genderHintButton = new HintButton(genderL.Left + genderL.Size.Width, genderL.Top - 5, String.Format("A fájl betöltése után arra is lehetősége van, hogy kiválassza,{0}melyik nem esetében kíváncsi a megfelelő adatokra!{0}{0}Csak ebben az esetben lesz elérhető a 'Megjelenítés' gomb!{0}{0}Amennyiben mégsem azt a nemet választaná, ne felejtse el az 'újra' gombot megnyomni!", newline));
            Controls.Add(genderHintButton);

            HintButton ageHintButton = new HintButton(ageL.Left + ageL.Size.Width, ageL.Top - 5, String.Format("Válassza ki, milyen korú személyeket szeretne megjeleníteni!{0}{0}Amennyiben üresen hagyja, automatikusan a szélsőértékeket választja ki a program!", newline));
            Controls.Add(ageHintButton);

            HintButton fileHintButton = new HintButton(_fileButton.Left + _fileButton.Size.Width + 5, _fileButton.Top + _fileButton.Height / 4, String.Format("Ahhoz, hogy egy fájlt megfelelően be tudjon olvasni,{0}a következő oszlopokat kell tartalmaznia (ezen sorrendben):{0}{0}Vezetéknév (szöveg){0}Keresztnév (szöveg){0}Kor (szám){0}Nem (Férfi=1/Nő=2){0}Legmagasabb iskolai végzettség (szöveg){0}van munkája (van/nincs)", newline));
            Controls.Add(fileHintButton);

        }
    // Start is called before the first frame update
    void Start()
    {
        armTwoScript            = GameObject.Find("ScientistArmTwo").GetComponent <MoveArms>();
        opponentMoveMouseScript = GameObject.Find("opponentMouse").GetComponent <MoveMouse>();

        // playerClickMouseScript = playerMouse.GetComponent<ClickMouse>();
        // opponentClickMouseScript = opponentMouse.GetComponent<ClickMouse>();

        interfaceController = GameObject.Find("GameController").GetComponent <InterfaceController>();
        highlightMat        = Resources.Load("highlightColor", typeof(Material)) as Material;
        hintMat             = Resources.Load("hintColor", typeof(Material)) as Material;
        possibleMoves       = new List <string>();
        gameSquareMat       = Resources.Load("cubeColor", typeof(Material)) as Material;
        hintButtonScript    = GameObject.Find("HintButton").GetComponent <HintButton>();
    }
Example #5
0
        public async Task OnLoaded(bool loadState, bool reloadImages)
        {
            if (!(await ImageProvider.HasConnection(new Word("word", "word"))))
            {
                ShowNoInternetMessage(null);
                return;
            }

            HintButton.SetValue(AutomationProperties.NameProperty, string.Format("{0} ({1})", Strings.textHint, Game.HintsLeft));

            await Game.InitializeFirstTurn();

            if (reloadImages)
            {
                SelectImage_Tapped(null, null);
            }

            Game.PreloadImages();
        }
Example #6
0
 void Start()
 {
     _hintButton = GameObject.Find("Hint_Button").GetComponent <HintButton>();
 }