Skip to content

Event Priority works the other way round, than written in documentation #159

@Serpens66

Description

@Serpens66

Operating System

Windows

Extender Version

v60

Game Version

v3.6.117.3735

Bug Summary

Ext.Events.BeforeStatusApply:Subscribe(function(ev)
  print("BeforeStatusApply 1",ev.Status.StatusId)
end,{Priority = -9999})
Ext.Events.BeforeStatusApply:Subscribe(function(ev)
  print("BeforeStatusApply 4",ev.Status.StatusId)
end,{Priority = 1000})
Ext.Events.BeforeStatusApply:Subscribe(function(ev)
  print("BeforeStatusApply 2",ev.Status.StatusId)
end,{Priority = 0})
Ext.Events.BeforeStatusApply:Subscribe(function(ev)
  print("BeforeStatusApply 3",ev.Status.StatusId)
end)
-- BeforeStatusApply 4	CHILLED
-- BeforeStatusApply 3	CHILLED
-- BeforeStatusApply 2	CHILLED
-- BeforeStatusApply 1	CHILLED

Compared to the sentence from Docu https://github.com/Norbyte/ositools/blob/master/Docs/ReleaseNotesv56.md#new-event-system : The Priority setting determines the order in which subscribers are called; subscribers with lower priority are called first.

Best would most likely be to fix the Docu.

Links

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions