예제 #1
0
파일: NameInput.cs 프로젝트: mbos14/GTFO
 private void ButtonCreator()
 {
     for (int i = 0; i < 4; i++)
     {
         for (int j = 0; j < 10; j++)
         {
             KeyboardButtons keyboardButton = new KeyboardButtons(_frameIndicator, buttonValue);
             buttonList.Add(keyboardButton);
             AddChild(keyboardButton);
             keyboardButton.SetXY(_buttonStartPointX + j * _buttonSize, _buttonStartPointY + i * _buttonSize);
             keyboardButton.SetFrame(_frameIndicator);
             _frameIndicator += 2;
             buttonValue++;
         }
     }
 }
예제 #2
0
파일: NameInput.cs 프로젝트: mbos14/GTFO
        private void drawInput()
        {
            Sprite background = new Sprite("keyboardbg.png");
            AddChild(background);

            for (int i = 0; i < 4; i++)
            {
                for (int j = 0; j < 10; j++)
                {
                    KeyboardButtons keyboardButton = new KeyboardButtons(_frameIndicator, _buttonValue);
                    buttonList.Add(keyboardButton);
                    AddChild(keyboardButton);
                    keyboardButton.SetXY(_buttonStartPointX + j * BUTTONSIZE, _buttonStartPointY + i * BUTTONSIZE);
                    keyboardButton.SetFrame(_frameIndicator);
                    _frameIndicator += 2;
                    _buttonValue++;
                }
            }

            _mouse = new Mouse();
            AddChild(_mouse);
        }