7. Make a button do one useful thing
1. Add a Button to the register panel. Set ID to point_button and Text to Add a point ($$score).
2. Open Events and find Click.
3. Choose Action List as the primary behavior.
4. Expand Additional Event Actions and click Add Next Action.
5. Choose Change Variable, select score, set Operation to add and Value to 1.
6. Save, run the game, open the register and click once.
Figure 10. The score-changing step is in the button's event list. The arrows reorder steps and the x removes a step.
The live score should rise once. Both the label and the button caption then display the new value. You do not need a second action to rewrite those two captions when they already contain $$score.
An Action List on a GUI event uses the same shared actions as other action-list editors. Choose a single primary action for one task, or a list when the command needs several ordered steps.
