Initial pass to rework and cleanup the main UI interface

Implements interface buttons that react to input type and visually display keybinds
Updates the T3D icon and splash screen
This commit is contained in:
Areloch 2020-05-20 17:19:52 -05:00
parent 157b114ec7
commit bc27125e90
188 changed files with 2553 additions and 758 deletions

View file

@ -516,6 +516,39 @@ bool GuiTextListCtrl::onKeyDown( const GuiEvent &event )
}
bool GuiTextListCtrl::onGamepadAxisUp(const GuiEvent& event)
{
if (mSelectedCell.y < (mList.size() - 1))
{
S32 yDelta = 0;
mSelectedCell.y++;
yDelta = mCellSize.y;
GuiScrollCtrl* parent = dynamic_cast<GuiScrollCtrl*>(getParent());
if (parent)
parent->scrollDelta(0, yDelta);
}
return true;
}
bool GuiTextListCtrl::onGamepadAxisDown(const GuiEvent& event)
{
if (mSelectedCell.y > 0)
{
S32 yDelta = 0;
mSelectedCell.y--;
yDelta = -mCellSize.y;
GuiScrollCtrl* parent = dynamic_cast<GuiScrollCtrl*>(getParent());
if (parent)
parent->scrollDelta(0, yDelta);
}
return true;
}
//-----------------------------------------------------------------------------
// Console Methods
//-----------------------------------------------------------------------------