Fandom

武装突袭 Wiki

DialogControls-Sliders

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 Share

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

General编辑

  • TokenNames common to most controls, such as x,y,w,h,text,idc... are not listed here.
  • 'Sliders' and 'ScrollBars' are synonymous.
  • Default scrollbars (sliders) are VERTICAL. Use ST_HORZ to change orientation.
  • Embedded child scrollbars are created by the engine as and when required for various control types. (CT_LISTBOX eg). The engine generates it's own idc for them. In most cases you can alter characteristics of that auto-generated scrollbar via class ScrollBar

It makes no sense to create 'independent' scrollbars without an idc.

CT_SLIDER=3 (deprecated)编辑

Properties
Name Type Remark
coloractive color array color of the arrows.
Title/Value classes Optional and probably script only related

CT_XSLIDER=43 or Embedded Scrollbar Class编辑

Embedded scrollbar classes (such as those in listboxes eg) use the xbox properties as per a CT_XSLIDER

Properties
Name Type Remark
arrowEmpty/Full textures
border texture
colorActive color color of the arrows.
colorDisabled color
thumb texture
vspacing float
Title/Value classes Optional probably irrelevant as script only related


Title or Value class编辑

Properties
Name Type Remark
idc integer
colorBase color array
colorActive color array

Example编辑

File:ControlSlider.JPG
  • Example:

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];"; };

  • Helpful Script Commands:

sliderPosition, sliderRange, sliderSetPosition, sliderSetRange, sliderSetSpeed, sliderSpeed

更多维基

随机维基