Redo file prompts with in-game UI

This commit is contained in:
elasota
2020-09-12 22:29:57 -04:00
parent 8518d01c70
commit b23bb93506
44 changed files with 1133 additions and 362 deletions

View File

@@ -13,17 +13,18 @@ namespace PortabilityLayer
, m_max(0)
, m_state(0)
, m_enabled(true)
, m_defaultCallback(nullptr)
{
}
WidgetHandleState_t Widget::ProcessEvent(const TimeTaggedVOSEvent &evt)
WidgetHandleState_t Widget::ProcessEvent(void *captureContext, const TimeTaggedVOSEvent &evt)
{
(void)evt;
return WidgetHandleStates::kIgnored;
}
int16_t Widget::Capture(const Point &pos, WidgetUpdateCallback_t callback)
int16_t Widget::Capture(void *captureContext, const Point &pos, WidgetUpdateCallback_t callback)
{
return 0;
}
@@ -64,6 +65,11 @@ namespace PortabilityLayer
OnEnabledChanged();
}
bool Widget::IsEnabled() const
{
return m_enabled;
}
void Widget::SetState(int16_t state)
{
m_state = state;