null
US
Entrar
Registre-se gratuitamente
Registre-se
Detectamos que o JavaScript não está habilitado no teu navegador. Habilite o Javascript para o funcionamento correto do nosso site. Por favor, leia os
Termos e Condições
para mais informações.
Próximo
Copiar e Editar
Você deve estar logado para concluir esta ação!
Inscreva-se gratuitamente
5262364
Implementing Buttons
Descrição
Map about how button class should work.
Sem etiquetas
tic-tac-toe
game-development
sdl
class
sdl game development
self learning
Mapa Mental por
Tanay Karnik
, atualizado more than 1 year ago
Mais
Menos
Criado por
Tanay Karnik
mais de 8 anos atrás
4
0
0
Resumo de Recurso
Implementing Buttons
Drawing Buttons
Create the text texture with the point size, color and font
Query the texture for its width and height
Add the padding to its width and height to get the size of the background rectangle
Draw the background rectangle
Draw the text on top
Variables
Private Variables
bgColor
textColor
width
height
Public Variables
bgColorActivated
bgColorNormal
x
y
textColorNormal
textColorActivated
text
Updating Buttons
When the user clicks on the button
toggle the bgColor
toggle the textColor
toggle the state of the button
Quer criar seus próprios
Mapas Mentais
gratuitos
com a GoConqr?
Saiba mais
.
Semelhante
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
Bible Mind Map
moffahe
CAGE and Crime
Gabzay
Kingdom Animalia
9.schilleraldino
Explanations Class inequalities
Yasmine King
Inequalities
Yasmine King
Explanations of class inequalities
Yasmine King
Class differences in education
Phoebe Fletcher
Explore a Biblioteca