mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
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:
parent
157b114ec7
commit
bc27125e90
188 changed files with 2553 additions and 758 deletions
|
|
@ -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
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue