Targetware: Customizing the User Interface
Widget Type: Field
Fields are boxes into which the user can enter text. Currently, the only working fields are those for entering your Username and Password, but other fields will be enabled in the future. In the case of Fields, the "label =" line allows you to place "default" text into the field, prior to the user editing it. The "title =" line can be used to label the field.
Sample Field Code
| |
[Page 5 Widget 11]
type = field
pos = 260, 275
size = 160, 20
label =
title = Username:
title_color = 255, 255, 255, 255
label_color = 0, 0, 0, 255
disable_text_color = 76, 76, 76, 255
color = 127, 127, 127, 255
texture =
texcoord1 =
texcoord2 =
hl_color = 63, 63, 255, 255
hl_texture =
hl_texcoord1 =
hl_texcoord2 =
center = 0
disable = 0
emboss = 1
function = 1
|
In this example, we have set up a field to allow the user to enter in thier Targetware Username, prior to going online for the first time. Notice that we use no texture for it, so we have enabled the embossed look. We have left the label blank.
Field Functions
| |
1 username
2 password
100 server keywords must contain (unimplemented)
101 server keywords must not contain (unimplemented)
102 server max ping (unimplemented)
|
|