Skip to content

Commit

Permalink
v1.1.8.178 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
UnryzeC authored Jan 23, 2024
1 parent 8c81ddd commit 48faf11
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 8 deletions.
74 changes: 71 additions & 3 deletions uJAPIFiles/UjAPI.j
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ type unitweaponrealfield extends agentdatafield
type unitweaponbooleanfield extends agentdatafield
type unitweaponstringfield extends agentdatafield
type flagtype extends handle
type layoutstyleflag extends flagtype
type gridstyleflag extends flagtype
type layerstyleflag extends flagtype
type controlstyleflag extends flagtype
type abilitytype extends flagtype
type movetype extends flagtype
type pathingaitype extends flagtype
type collisiontype extends flagtype
Expand Down Expand Up @@ -122,8 +125,11 @@ constant native ConvertPathingFlag takes integer i returns pathingflag
constant native ConvertTimeType takes integer i returns timetype
constant native ConvertVariableType takes integer i returns variabletype
constant native ConvertRenderStage takes integer i returns renderstage
constant native ConvertLayoutStyleFlag takes integer i returns layoutstyleflag
constant native ConvertGridStyleFlag takes integer i returns gridstyleflag
constant native ConvertLayerStyleFlag takes integer i returns layerstyleflag
constant native ConvertControlStyleFlag takes integer i returns controlstyleflag
constant native ConvertAbilityType takes integer i returns abilitytype
constant native ConvertConnectionType takes integer i returns connectiontype

constant native GetJassArrayLimit takes nothing returns integer
Expand Down Expand Up @@ -1702,6 +1708,16 @@ globals
constant targetflag TARGET_FLAG_ANCIENT = ConvertTargetFlag(2147483648)
constant targetflag TARGET_FLAG_EMPTY = ConvertTargetFlag(4294967295)

// ability types
constant abilitytype ABILITY_TYPE_POSITIVE = ConvertAbilityType(0)
constant abilitytype ABILITY_TYPE_NEGATIVE = ConvertAbilityType(1)
constant abilitytype ABILITY_TYPE_AURA = ConvertAbilityType(2)
constant abilitytype ABILITY_TYPE_BUFF = ConvertAbilityType(3)
constant abilitytype ABILITY_TYPE_TIMED_LIFE = ConvertAbilityType(4)
constant abilitytype ABILITY_TYPE_PHYSICAL = ConvertAbilityType(5)
constant abilitytype ABILITY_TYPE_MAGICAL = ConvertAbilityType(6)
constant abilitytype ABILITY_TYPE_AUTODISPEL = ConvertAbilityType(7)

// defense type
constant defensetype DEFENSE_TYPE_LIGHT = ConvertDefenseType(0)
constant defensetype DEFENSE_TYPE_MEDIUM = ConvertDefenseType(1)
Expand Down Expand Up @@ -1803,6 +1819,37 @@ globals
constant renderstage RENDER_STAGE_LIGHTNING = ConvertRenderStage(20)
constant renderstage RENDER_STAGE_TEXTTAG = ConvertRenderStage(21)

constant layoutstyleflag LAYOUT_STYLE_BOUNDING_FRAME_POSITION = ConvertLayoutStyleFlag(1)
constant layoutstyleflag LAYOUT_STYLE_ALWAYS_TRACK = ConvertLayoutStyleFlag(2)
constant layoutstyleflag LAYOUT_STYLE_NO_ENV = ConvertLayoutStyleFlag(4)

constant gridstyleflag GRID_STYLE_JUSTIFY_LEFT = ConvertGridStyleFlag(8)
constant gridstyleflag GRID_STYLE_JUSTIFY_RIGHT = ConvertGridStyleFlag(16)
constant gridstyleflag GRID_STYLE_JUSTIFY_TOP = ConvertGridStyleFlag(32)
constant gridstyleflag GRID_STYLE_JUSTIFY_BOTTOM = ConvertGridStyleFlag(64)
constant gridstyleflag GRID_STYLE_JUSTIFY_MIDDLE = ConvertGridStyleFlag(128)
constant gridstyleflag GRID_STYLE_JUSTIFY_CENTER = ConvertGridStyleFlag(256)
constant gridstyleflag GRID_STYLE_PACK_ITEMS = ConvertGridStyleFlag(512)

constant layerstyleflag LAYER_STYLE_SVIEWPOINT = ConvertLayerStyleFlag(1)
constant layerstyleflag LAYER_STYLE_IGNORE_TRACK_EVENTS = ConvertLayerStyleFlag(2)
constant layerstyleflag LAYER_STYLE_SHADING = ConvertLayerStyleFlag(4)
constant layerstyleflag LAYER_STYLE_SCROLL = ConvertLayerStyleFlag(8)
constant layerstyleflag LAYER_STYLE_NO_DEPTH_SET = ConvertLayerStyleFlag(16)
constant layerstyleflag LAYER_STYLE_NO_DEPTH_TEST = ConvertLayerStyleFlag(32)

constant controlstyleflag CONTROL_STYLE_AUTOTRACK = ConvertControlStyleFlag(1)
constant controlstyleflag CONTROL_STYLE_CLICK_MOUSE_DOWN = ConvertControlStyleFlag(2)
constant controlstyleflag CONTROL_STYLE_RELEASE_NOTIFY = ConvertControlStyleFlag(4)
constant controlstyleflag CONTROL_STYLE_DRAG = ConvertControlStyleFlag(8)
constant controlstyleflag CONTROL_STYLE_HIGHLIGHT_ON_FOCUS = ConvertControlStyleFlag(16)
constant controlstyleflag CONTROL_STYLE_HIGHLIGHT_FOCUS = ConvertControlStyleFlag(32)
constant controlstyleflag CONTROL_STYLE_HIGHLIGHT_ON_MOUSE_OVER = ConvertControlStyleFlag(64)
constant controlstyleflag CONTROL_STYLE_SLIDER_STEP = ConvertControlStyleFlag(128)
constant controlstyleflag CONTROL_STYLE_HIGHLIGHT = ConvertControlStyleFlag(256)
constant controlstyleflag CONTROL_STYLE_EXCLUSIVE = ConvertControlStyleFlag(512) // Seems to be the same as SHIFTDESELECT and AUTODOWN
constant controlstyleflag CONTROL_STYLE_AT_LEAST_ONE = ConvertControlStyleFlag(1024)

constant integer BORDER_FLAG_UPPER_LEFT = 1
constant integer BORDER_FLAG_UPPER_RIGHT = 2
constant integer BORDER_FLAG_BOTTOM_LEFT = 4
Expand Down Expand Up @@ -2735,6 +2782,7 @@ native IsAbilityBaseTargetAllowed takes integer abilCode, widget source, wi

// Normal API
native CreateAbility takes integer abilCode returns ability
native IsAbilityType takes ability whichAbility, abilitytype whichAbilityType returns boolean
native GetAbilityOwner takes ability whichAbility returns unit
native SetAbilityOwner takes ability whichAbility, unit whichUnit returns nothing
native GetAbilityOwningAbility takes ability whichAbility returns ability // if it belongs to Spellbook (Aspb) and so on.
Expand Down Expand Up @@ -2811,11 +2859,14 @@ native GetBuffTypeId takes buff whichBuff returns integer
native GetBuffBaseTypeId takes buff whichBuff returns integer
native GetBuffOwner takes buff whichbuff returns unit
native SetBuffOwner takes buff whichBuff, unit whichUnit returns nothing
native IsBuffDispellable takes buff whichBuff returns boolean
native SetBuffDispellable takes buff whichBuff, boolean isSet returns nothing
native GetBuffLevel takes buff whichBuff returns integer
native SetBuffLevel takes buff whichBuff, integer level returns nothing
native GetBuffRemainingDuration takes buff whichBuff returns real
native SetBuffRemainingDuration takes buff whichBuff, real duration returns boolean
native RefreshBuff takes buff whichBuff returns boolean
native SetBuffRemainingDuration takes buff whichBuff, real duration returns nothing
native PauseBuff takes buff whichBuff, boolean pause returns nothing
native RefreshBuff takes buff whichBuff returns nothing

native GetFilterBuff takes nothing returns buff
native GetEnumBuff takes nothing returns buff
Expand Down Expand Up @@ -3380,6 +3431,7 @@ native UnitApplyUpgrades takes unit whichUnit returns nothing

// Unit Ability API
native GetUnitAbility takes unit whichUnit, integer aid returns ability
native GetUnitAbilityEx takes unit whichUnit, integer aid, integer id returns ability // Allows you to search through duplicates.
native GetUnitAbilityByIndex takes unit whichUnit, integer index returns ability
native UnitAddAbilityEx takes unit whichUnit, integer abilCode, boolean checkForDuplicates returns boolean
native UnitRemoveAbilityEx takes unit whichUnit, integer abilCode, boolean removeDuplicates returns boolean
Expand All @@ -3401,6 +3453,7 @@ native UnitAddBuffById takes unit whichUnit, integer buffId returns bool
native UnitAddBuffByIdEx takes unit whichUnit, integer buffId, boolean checkForDuplicates returns boolean
//
native GetUnitBuff takes unit whichUnit, integer buffId returns buff
native GetUnitBuffEx takes unit whichUnit, integer buffId, integer id returns buff // Allows you to search through duplicates.
native GetUnitBuffByIndex takes unit whichUnit, integer index returns buff
native GetUnitBuffLevel takes unit whichUnit, integer buffId returns integer
//
Expand Down Expand Up @@ -3812,6 +3865,10 @@ native GetFrameModel takes framehandle whichFrame returns string
native SetFrameModel takes framehandle whichFrame, string model, integer cameraIndex returns nothing
native IsFrameEnabled takes framehandle whichFrame returns boolean
native SetFrameEnabled takes framehandle whichFrame, boolean enabled returns nothing
native IsFrameLayoutFlag takes framehandle whichFrame, layoutstyleflag whichLayoutStyle returns boolean
native SetFrameLayoutFlag takes framehandle whichFrame, layoutstyleflag whichLayoutStyle, boolean isSet returns nothing
native IsFrameGridFlag takes framehandle whichFrame, gridstyleflag whichGridStyle returns boolean
native SetFrameGridFlag takes framehandle whichFrame, gridstyleflag whichGridStyle, boolean isSet returns nothing
native IsFrameLayerFlag takes framehandle whichFrame, layerstyleflag whichLayerStyle returns boolean
native SetFrameLayerFlag takes framehandle whichFrame, layerstyleflag whichLayerStyle, boolean isSet returns nothing
native IsFrameControlFlag takes framehandle whichFrame, controlstyleflag whichControlStyle returns boolean
Expand Down Expand Up @@ -3884,7 +3941,7 @@ native GetFrameItemOwner takes framehandle listBoxItem returns framehandl
native SetFrameItemOwner takes framehandle listBoxItem, framehandle whichFrame returns nothing
//

// Border API | For corner flags refer to BORDER_FLAG. For CBackdropFrame and its children and for CSimpleFrame, backdropId has to be always 0.
// Backdrop API | Border API | For corner flags refer to BORDER_FLAG. For CBackdropFrame and its children and for CSimpleFrame, backdropId has to be always 0.
// For CFrames that contain backdrops, use ids to differentiate between them, this is similar to CSimpleButton states, etc.
native GetFrameBorderFlags takes framehandle whichFrame, integer backdropId returns integer
native SetFrameBorderFlags takes framehandle whichFrame, integer backdropId, integer cornerFlag returns nothing
Expand All @@ -3897,6 +3954,17 @@ native SetFrameBackgroundInsetById takes framehandle whichFrame, integer b
native SetFrameBackgroundInsets takes framehandle whichFrame, integer backdropId, real minX, real minY, real maxX, real maxY returns nothing
//

// Grid API
native GetFrameGridRows takes framehandle grid returns integer
native GetFrameGridColumns takes framehandle grid returns integer
native SetFrameGridSize takes framehandle grid, integer row, integer column returns nothing
native GetFrameGridFrame takes framehandle grid, integer row, integer column returns framehandle
native GetFrameGridFrameById takes framehandle grid, integer id returns framehandle
native SetFrameGridFrame takes framehandle grid, integer row, integer column, framehandle whichFrame returns nothing
native IsBuffBarRenderDuplicates takes nothing returns boolean
native SetBuffBarRenderDuplicates takes boolean allow returns nothing // this will allow the rendering (drawing) of duplicate (similar) buffs. By default is off.
//

// Trigger Frame API
native GetTriggerFrame takes nothing returns framehandle
native GetTriggerFrameEvent takes nothing returns frameeventtype
Expand Down
Loading

0 comments on commit 48faf11

Please sign in to comment.