|
|
(20 intermediate revisions by 4 users not shown) |
Line 1: |
Line 1: |
| '''TokenNames common to most controls, such as x,y,w,h,text,idc... are not listed here.'''
| | {{Wiki|disamb}} |
|
| |
|
| ===CT_SLIDER=3===
| | * [[CT_XSLIDER]] |
| {| border="1" align="left" cellpadding="3" cellspacing="0" |
| | * [[CT_SLIDER]] |
| ! colspan="3" bgcolor="#bbbbff" | Properties
| |
| |-
| |
| ! bgcolor="#ddddff" | Name
| |
| ! bgcolor="#ddddff" | Type
| |
| ! bgcolor="#ddddff" | Remark
| |
| |-
| |
| | '''style'''
| |
| | integer
| |
| | generally 1024
| |
| |-
| |
| | '''coloractive'''
| |
| | color array
| |
| | color of the arrows.
| |
| |-
| |
| | '''Title'''
| |
| | class
| |
| |
| |
| |-
| |
| | '''Value'''
| |
| | class
| |
| |
| |
| |-
| |
| |}<br clear="all">
| |
| | |
| ====Title or Value class====
| |
| {| border="1" align="left" cellpadding="3" cellspacing="0" |
| |
| ! colspan="3" bgcolor="#bbbbff" | Properties
| |
| |-
| |
| ! bgcolor="#ddddff" | Name
| |
| ! bgcolor="#ddddff" | Type
| |
| ! bgcolor="#ddddff" | Remark
| |
| |-
| |
| | '''idc'''
| |
| | integer
| |
| |
| |
| |-
| |
| | '''colorBase'''
| |
| | color array
| |
| |
| |
| |-
| |
| | '''colorActive'''
| |
| | color array
| |
| |
| |
| |-
| |
| |}<br clear="all">
| |
| | |
| ===CT_XSLIDER=43===
| |
| | |
| {| border="1" align="left" cellpadding="3" cellspacing="0" |
| |
| ! colspan="3" bgcolor="#bbbbff" | Properties
| |
| |-
| |
| ! bgcolor="#ddddff" | Name
| |
| ! bgcolor="#ddddff" | Type
| |
| ! bgcolor="#ddddff" | Remark
| |
| |-
| |
| | '''style'''
| |
| | integer
| |
| |
| |
| |-
| |
| | '''coloractive'''
| |
| | color array
| |
| | color of the arrows.
| |
| |-
| |
| | '''colorDisable'''
| |
| | color array
| |
| |
| |
| |-
| |
| | '''arrowEmpty'''
| |
| | color array
| |
| |
| |
| |-
| |
| | '''arrowFull'''
| |
| | color array
| |
| |
| |
| |-
| |
| | '''border'''
| |
| | color array
| |
| |
| |
| |-
| |
| | '''thumb'''
| |
| | color array
| |
| |
| |
| |-
| |
| | '''vspacing'''
| |
| | float
| |
| |
| |
| |-
| |
| |}<br clear="all">
| |
| | |
| | |
| '''Notice:'''
| |
| | |
| You can change the orientation of the slider with the '''style''' constants ''SL_HORZ'' and ''SL_VERT''.
| |
| [[Image:ControlSlider.JPG|thumb|200px|A Slider Control]]
| |
| * '''Example:''' | |
| <code><nowiki>class MySlider {
| |
| idc = -1;
| |
| type = CT_SLIDER;
| |
| style = SL_HORZ;
| |
| x = 0.4;
| |
| y = 0.2;
| |
| w = 0.3;
| |
| h = 0.025;
| |
| color[] = { 1, 1, 1, 1 };
| |
| coloractive[] = { 1, 0, 0, 0.5 };
| |
| // This is an ctrlEventHandler to show you some response if you move the sliderpointer.
| |
| onSliderPosChanged = "hint format[""%1"",_this];";
| |
| };</nowiki></code>
| |
| * '''Helpful Script Commands:''' | |
| '''[[sliderPosition]], [[sliderRange]], [[sliderSetPosition]], [[sliderSetRange]], [[sliderSetSpeed]], [[sliderSpeed]]'''
| |
| [[Category: Dialogs]]
| |