1 GUI Radio button
trac edited this page 2008-02-23 03:18:59 +00:00

{{Template:GUI_Object|radiobutton|buffer_zone, caption, cell_id, checked, font, sprite, sprite_over, sprite_pressed, sprite_disabled, sprite2, sprite2_over, sprite2_pressed, sprite2_disabled, textcolor, textcolor_over, textcolor_pressed, textcolor_disabled, tooltip, tooltip_style|none}}

A Radio-button is a control that defines a boolean value, i.e. true or false. It contains a squared sprite and text next to it.

The square itself can have 8 different kinds of sprites (although many are optional): false, false-over, false-pressed and false-disabled, true, true-over, true-pressed, true-disabled ... false and true being checked="true" and checked="false". sprite represents false, and sprite2 true.

By pressing the Radio-button one can change its value (using the same behaviour as a button); that includes the text too. When a Radio-button is pressed (this is what differentiate it from the Check-box), and turned to true, all other sibling Radio-buttons turn false.

Image_gui-object-radiobutton.png

To create a group of Radio-buttons, use preferably an empty