RADIO

Radio buttons can be grouped radio buttons with each other. When one of the radio button is turned on, the other radio button automatically turns off.

It has the CONTENTS as CHECKBOX . So it is possible to behave as a tab button.

RADIO(Control name) {

Property 1;

Property 2;

:

:

Property n

};

Example

WINDOW(255_000_00001) {
  STYLE = NOTITLEBAR|ANCHOR_CENTER;
  POSITION = 0,100;
  TEX_ID = 100_000_00001;
  CAPTION = 000_000_00010;
  SIZE = 512,256;
};
RADIO(Party) {
  ID = 000_000_00100;
  POSITION = 16,10;
  TEX_ID=0,"BTNT?";
  CAPTION_COLOR=COLOR32(30,30,30,220);
  FONT_KIND="fn22";
  SIZE=44*4+16,64;
  CAPTION = 000_000_00015;
  GROUP = RADIO(Party),RADIO(Friend),RADIO(Guild);
};
RADIO(Friend) {
  ID = 000_000_00110;
  POSITION = 16,90;
  TEX_ID=0,"BTNT?";
  CAPTION_COLOR=COLOR32(30,30,30,220);
  FONT_KIND="fn22";
  SIZE=44*4+16,64;
  CAPTION = 010_000_00020;
  GROUP = RADIO(Party),RADIO(Friend),RADIO(Guild);
};
RADIO(Guild) {
  ID = 000_000_00120;
  POSITION = 16,170;
  TEX_ID=0,"BTNT?";
  CAPTION_COLOR=COLOR32(30,30,30,220);
  FONT_KIND="fn22";
  SIZE=44*4+16,64;
  CAPTION = 010_000_00010;
  GROUP = RADIO(Party),RADIO(Friend),RADIO(Guild);
};
_images/RADIO.png

In this example , party button , friend button , the guild button is exclusively turned on.

Property

Default value

TEX_ID = "BTN0?";
COLOR = 1,1,1,1;
CAPTION_COLOR = 1,1,1,1;

Part ID rule

It replaces the fifth character of the part ID to 0/1.

  • XXXX0: off state

  • XXXX1: on state

TEX_ID = "BTN0?";

If parts ID has been set in this way, you need to prepare parts, such as the following.

  • BNT00: off state

  • BNT01: on state

ID = Control ID

Define the control ID.

ID = 001_000_00010;

Note

If you don’t set the ID, it generates automatically from the hash value.

POSITION = X, Y

Determine the display position. The base position changes according to the anchor in STYLE.

POSITION = 32,{50} + 64;

Coordinates can be specified as a percentage .

SIZE = width,height

It changes the display size. If it is omitted , or , you specify 0 ,it gets the size from the texture parts.

SIZE = 64,32; //64x32
SIZE = ,32;   //Set the width of the texture part width
SIZE = 64;            //Set the height of the texture part height
SIZE = {50} - 25;

Size can be specified as a percentage .

TEX_ID = Texture ID,Part ID

TEX_ID = Part ID

You set the texture ID and the part ID.

COLOR = R,G,B,A

Set the color.

Set R, G, B in the range of 0…2 .

If you set a value in excess of one , each color component can double the brightness.

Set A in the range of 0…1 .

SE_ID = SE_ID

Set the ID of the sound to sound when pressed . The default is clickSE. The sound will not sound when set to 0 .

CAPTION = Caption ID

Set the ID of the string .

Please refer to here .

CAPTION = 010_000_00100;

CAPTION = “string”

Set the string.

CAPTION = "Hellow world!";

CAPTION_COLOR = R,G,B,A

You can set the caption color .

Set a value in the range of 0…1.

CAPTION_OFFSET = X, Y

It adjust the caption position.

Caption offset can be specified by a percentage .

TEX_ID n = Texture ID,Part ID

TEX_ID n = Part ID

Set the texture ID and the part ID of the badge.

It can be set in the range of n = [1..7].

TEXTURE_OFFSET n = offset X,offset Y

Set the display offset of the badge.

It can be set in the range of n = [1..7].

Texture offset can be specified by a percentage .

Texture offset can be specified by a percentage .

You set the texture ID and the part ID.

It can be set in the range of n = [1..7].

When n = 0, it has the same meaning as SIZE.

TEXTURE_SIZE1 = 64,32;        //64x32
TEXTURE_SIZE2 = ,32;  //Set the width of the texture part width
TEXTURE_SIZE3 = 64;   //Set the height of the texture part height

Texture size can be specified by a percentage .

COLOR n = R,G,B,A

Set the badge color .

Set R, G, B in the range of 0…2 .

If you set a value in excess of one , each color component can double the brightness.

Set A in the range of 0…1 .

It can be set in the range of n = [1..7].

CONTENTS = { control define … }

It associates the controls to be activated when the button is on.

Automatically the contents hide if a button is the off state. The contents is possible to include all kind of the control.

CONTENTS = {
   BUTTON(A) {
      :
   }
   TEXTURE(B) {
      :
   }
   LISTBOX(C) {
      :
   }
}

Method of accessing content using C # : here

Note

Unlike a list box, the coordinates and size percentage specifications for controls in the content are calculated from the window size.

GROUP = ID0,ID1,…,IDn

When you associate this control and radio buttons to each other , and one of the group is turned on, the other radio button is automatically turned off.

GRUOP = RADIO(A),RADIO(B),RADIO(C);

When RADIO (A) is turned on, automatically RADIO (B), RADIO (C) is turned off.

** STYLE ** = style 0 | style 1 | .. | style n

You can set the display anchor of control.

Display position anchor flag

Description

ANCHOR_DEFAULT

Set the anchor position in the upper left

Same as ANCHOR_LEFTTOP

The default control center position is set to BASE_LEFT.

ANCHOR_LEFTTOP

Set the anchor position in the upper left

The default control center position is set to BASE_LEFT.

ANCHOR_LEFT

Set the anchor position to the left.

And vertical centering

The default control center position is set to BASE_LEFT.

ANCHOR_LEFTBOTTOM

Set the anchor position to the left.

Located along the lower edge

The default control center position is set to BASE_LEFTBOTTOM.

ANCHOR_TOP

Set the anchor position to the upper side

Centering at lateral.

The default control center position is set to BASE_TOP.

ANCHOR_CENTER

Set the anchor position in the center of the window

The default control center position is set to BASE_CENTER.

ANCHOR_BOTTOM

Set the anchor position at the bottom

Centering at lateral.

The default control center position is set to BASE_BOTTOM.

ANCHOR_RIGHTTOP

Set the anchor position in the upper right

The default control center position is set to BASE_RIGHTBOTTOM.

ANCHOR_RIGHT

Set the anchor position to the right

And vertical centering

The default control center position is set to BASE_RIGHT.

ANCHOR_RIGHTBOTTOM

Set the anchor position to the right

Located along the lower edge

The default control center position is set to BASE_RIGHTBOTTOM.

You can set the center position of the control.

Base position change flag

Description

BASE_DEFAULT

It varies depending on the anchor flag .

If you do not specifically set , this value is set .

See the description of each anchor flag

BASE_LEFTTOP

Set the center position to the upper left side.

BASE_LEFT

Set the center position to the left side.

and vertical centering.

BASE_LEFTBOTTOM

Set the center position to the bottom left side.

BASE_TOP

Set the center position to the upper side.

and horizontal centering

BASE_CENTER

Set the center position to the center.

BASE_BOTTOM

Set the center position to the bottom side.

And horizontal centering.

BASE_RIGHTTOP

Set the center position to the upper right side.

BASE_RIGHT

Set the center position to the right side.

and horizontal centering

BASE_RIGHTBOTTOM

Set the center position to the bottom right side.

You set the caption position to the center.

Text anchor

Description

TEXT_CENTER

It aligns the text to the center.

TEXT_LEFT

It aligns the text to the left side.

TEXT_RIGHT

It aligns the text to the right side.

Change the font decoration of the caption .

You can change the font decoration of the caption .

Description

TEXT_NORMAL

No decoration

TEXT_BOLD

Bold type

TEXT_DENT

Dent type

TEXT_SHADOW

Shadow Type

Style that limits the function as follows .

Function limit style

Description

HIDE

Hide.

DRAG

Enable a dragging.

DISABLE

It is not able to pressing the control. And the control color darken.

NOHIT

It is not able to pressing the control.