mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-02 03:26:29 +03:00
I made some structural changes, and i'm trying to encapsulate a little the renderer to in a future implement an OpenGL3 render, and remove the fixed pipeline.
This commit is contained in:
@@ -66,6 +66,8 @@ void cUIListBoxItem::Select() {
|
||||
}
|
||||
|
||||
void cUIListBoxItem::Update() {
|
||||
cUITextBox::Update();
|
||||
|
||||
if ( mEnabled && mVisible ) {
|
||||
cUIListBox * LBParent = reinterpret_cast<cUIListBox*> ( Parent()->Parent() );
|
||||
Uint32 Flags = cUIManager::instance()->GetInput()->ClickTrigger();
|
||||
@@ -74,12 +76,12 @@ void cUIListBoxItem::Update() {
|
||||
Alpha( LBParent->Alpha() );
|
||||
|
||||
if ( IsMouseOver() ) {
|
||||
if ( Flags & EE_BUTTONS_WUWD && LBParent->VerticalScrollBar()->Visible() )
|
||||
if ( Flags & EE_BUTTONS_WUWD && LBParent->VerticalScrollBar()->Visible() ) {
|
||||
LBParent->VerticalScrollBar()->Slider()->ManageClick( Flags );
|
||||
//LBParent->UpdateScroll( true );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cUITextBox::Update();
|
||||
}
|
||||
|
||||
Uint32 cUIListBoxItem::OnMouseExit( const eeVector2i& Pos, const Uint32 Flags ) {
|
||||
|
||||
Reference in New Issue
Block a user