public NameInput(Level pLevel) { _level = pLevel; ButtonCreator(); mouse = new Mouse(); AddChild(mouse); }
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); }