This commit is contained in:
parent
57168f717a
commit
e550fe1868
4 changed files with 118 additions and 84 deletions
|
@ -71,7 +71,7 @@
|
|||
Params:
|
||||
Returns:
|
||||
---------------------------------------------------------------------- */
|
||||
void CGUIFactory::createValueButtonFrame(class CGUIObject *_parent,
|
||||
CGUIObject *CGUIFactory::createValueButtonFrame(class CGUIObject *_parent,
|
||||
int _x,int _y,int _w,int _h,
|
||||
int _textId,
|
||||
int *_target,int _value)
|
||||
|
@ -91,6 +91,8 @@ void CGUIFactory::createValueButtonFrame(class CGUIObject *_parent,
|
|||
vb->init(fr);
|
||||
vb->setButtonTarget(_target);
|
||||
vb->setButtonValue(_value);
|
||||
|
||||
return fr;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
|
@ -99,7 +101,7 @@ void CGUIFactory::createValueButtonFrame(class CGUIObject *_parent,
|
|||
Params:
|
||||
Returns:
|
||||
---------------------------------------------------------------------- */
|
||||
void CGUIFactory::createCycleButtonFrame(class CGUIObject *_parent,
|
||||
CGUIObject *CGUIFactory::createCycleButtonFrame(class CGUIObject *_parent,
|
||||
int _x,int _y,int _w,int _h,
|
||||
int _textId,
|
||||
int *_target,int *_data,CGUITextReadout::TextReadoutData *_readoutData)
|
||||
|
@ -125,6 +127,8 @@ void CGUIFactory::createCycleButtonFrame(class CGUIObject *_parent,
|
|||
tr->setObjectXYWH(0,(_h*2)/3,_w,(_h*1)/3);
|
||||
tr->setReadoutTarget(_target);
|
||||
tr->setReadoutData(_readoutData);
|
||||
|
||||
return fr;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
|
@ -133,7 +137,7 @@ void CGUIFactory::createCycleButtonFrame(class CGUIObject *_parent,
|
|||
Params:
|
||||
Returns:
|
||||
---------------------------------------------------------------------- */
|
||||
void CGUIFactory::createSliderButtonFrame(class CGUIObject *_parent,
|
||||
CGUIObject *CGUIFactory::createSliderButtonFrame(class CGUIObject *_parent,
|
||||
int _x,int _y,int _w,int _h,
|
||||
int _textId,
|
||||
int *_target,int _min,int _max)
|
||||
|
@ -159,6 +163,8 @@ void CGUIFactory::createSliderButtonFrame(class CGUIObject *_parent,
|
|||
br->setObjectXYWH(0,(_h*2)/3,_w,(_h*1)/3);
|
||||
br->setReadoutTarget(_target);
|
||||
br->setReadoutRange(_min,_max);
|
||||
|
||||
return fr;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue