mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
Changed scrollbar style, and some other changes:
* Changed the scrollbar style to look a bit nicer. * Fixed a typo in the EventDispatcher class. * Added PlayerStates to player.lua. * Minor tweak to console tab spacing. * Add unbinding key 'Ctrl+Shift+D' in the options.
This commit is contained in:
@@ -45,7 +45,7 @@ void EventDispatcher::poll()
|
||||
int loops = 0;
|
||||
for(int count = 0, max = m_scheduledEventList.size(); count < max && !m_scheduledEventList.empty(); ++count) {
|
||||
ScheduledEventPtr scheduledEvent = m_scheduledEventList.top();
|
||||
if(scheduledEvent->reamaningTicks() > 0)
|
||||
if(scheduledEvent->remainingTicks() > 0)
|
||||
break;
|
||||
m_scheduledEventList.pop();
|
||||
scheduledEvent->execute();
|
||||
|
@@ -35,7 +35,7 @@ public:
|
||||
bool nextCycle();
|
||||
|
||||
int ticks() { return m_ticks; }
|
||||
int reamaningTicks() { return m_ticks - g_clock.millis(); }
|
||||
int remainingTicks() { return m_ticks - g_clock.millis(); }
|
||||
int delay() { return m_delay; }
|
||||
int cyclesExecuted() { return m_cyclesExecuted; }
|
||||
int maxCycles() { return m_maxCycles; }
|
||||
|
@@ -191,7 +191,7 @@ void Application::registerLuaFunctions()
|
||||
g_lua.registerClass<ScheduledEvent, Event>();
|
||||
g_lua.bindClassMemberFunction<ScheduledEvent>("nextCycle", &ScheduledEvent::nextCycle);
|
||||
g_lua.bindClassMemberFunction<ScheduledEvent>("ticks", &ScheduledEvent::ticks);
|
||||
g_lua.bindClassMemberFunction<ScheduledEvent>("reamaningTicks", &ScheduledEvent::reamaningTicks);
|
||||
g_lua.bindClassMemberFunction<ScheduledEvent>("remainingTicks", &ScheduledEvent::remainingTicks);
|
||||
g_lua.bindClassMemberFunction<ScheduledEvent>("delay", &ScheduledEvent::delay);
|
||||
g_lua.bindClassMemberFunction<ScheduledEvent>("cyclesExecuted", &ScheduledEvent::cyclesExecuted);
|
||||
g_lua.bindClassMemberFunction<ScheduledEvent>("maxCycles", &ScheduledEvent::maxCycles);
|
||||
|
Reference in New Issue
Block a user