Implementing Buttons

Description

Map about how button class should work.
Tanay Karnik
Mind Map by Tanay Karnik, updated more than 1 year ago
Tanay Karnik
Created by Tanay Karnik almost 8 years ago
4
0

Resource summary

Implementing Buttons
  1. Drawing Buttons
    1. Create the text texture with the point size, color and font
      1. Query the texture for its width and height
        1. Add the padding to its width and height to get the size of the background rectangle
          1. Draw the background rectangle
            1. Draw the text on top
            2. Variables
              1. Private Variables
                1. bgColor
                  1. textColor
                    1. width
                      1. height
                      2. Public Variables
                        1. bgColorActivated
                          1. bgColorNormal
                            1. x
                              1. y
                                1. textColorNormal
                                  1. textColorActivated
                                    1. text
                                  2. Updating Buttons
                                    1. When the user clicks on the button
                                      1. toggle the bgColor
                                        1. toggle the textColor
                                          1. toggle the state of the button
                                        Show full summary Hide full summary

                                        Similar

                                        HISTOGRAMS
                                        Elliot O'Leary
                                        SCLY 2 - Education - Topic 1 - Class (AQA AS sociology)
                                        Tahlie
                                        Class Differences In Educational Achievement
                                        phoebebutler
                                        English Functional Grammar Section 2 (Basics) Quiz
                                        Martin Tilney
                                        CAGE and Crime
                                        Gabzay
                                        Bible Mind Map
                                        moffahe
                                        Kingdom Animalia
                                        9.schilleraldino
                                        Explanations Class inequalities
                                        Yasmine King
                                        Inequalities
                                        Yasmine King
                                        Explanations of class inequalities
                                        Yasmine King
                                        Class differences in education
                                        Phoebe Fletcher