Skip to content

Commit 24fe308

Browse files
authored
v1.1.34.338 Update
1 parent 915aa76 commit 24fe308

2 files changed

Lines changed: 92 additions & 54 deletions

File tree

uJAPIFiles/UjAPI.j

Lines changed: 46 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,7 +2052,7 @@ globals
20522052
constant spriteflag SPRITE_FLAG_NO_TRACK = ConvertSpriteFlag(1)
20532053
constant spriteflag SPRITE_FLAG_NO_CLICK = ConvertSpriteFlag(2)
20542054
constant spriteflag SPRITE_FLAG_NO_SELECT = ConvertSpriteFlag(4)
2055-
constant spriteflag SPRITE_FLAG_UNSELECTRABLE = ConvertSpriteFlag(7) // NO_TRACK | NO_CLICK | NO_SELECT
2055+
constant spriteflag SPRITE_FLAG_UNSELECTABLE = ConvertSpriteFlag(7) // NO_TRACK | NO_CLICK | NO_SELECT
20562056
constant spriteflag SPRITE_FLAG_STRUCTURE = ConvertSpriteFlag(8)
20572057
constant spriteflag SPRITE_FLAG_FLYER = ConvertSpriteFlag(128)
20582058
constant spriteflag SPRITE_FLAG_LINKED_MODEL = ConvertSpriteFlag(65536)
@@ -2543,6 +2543,8 @@ native GetConnectionType takes nothing returns connectiontype
25432543
native IsReplay takes nothing returns boolean
25442544
native GetCommandTime takes nothing returns integer // This affects TurnData flushing intervals, the lower the value, the faster it is, default: 50. (originally: <= 1.27a -> 200 | >= 1.27b -> 62 )
25452545
native SetCommandTime takes integer value returns nothing
2546+
native GetFogHeartbeat takes nothing returns real
2547+
native StartFogHeartbeat takes boolean isStart, real time returns nothing
25462548
native GetPathingHeartbeat takes nothing returns real
25472549
native StartPathingHeartbeat takes boolean isStart, real time returns nothing
25482550
native CacheModel takes string modelPath, boolean forceCreateGeosets returns nothing
@@ -2636,6 +2638,9 @@ native SetPlayerMuted takes player whichPlayer, boolean isMute returns
26362638
native IsPlayerMutedForPlayer takes player whichPlayer, player toPlayer returns boolean
26372639
native SetPlayerMutedForPlayer takes player whichPlayer, player toPlayer, boolean isMute returns nothing
26382640
native GetPlayerAPM takes player whichPlayer returns real
2641+
native GetPlayerPathingLimit takes player whichPlayer, integer queueType returns integer // 0 - deep | 1 - dynamic | 2 - fast | 3 - local
2642+
native SetPlayerPathingLimit takes player whichPlayer, integer value returns nothing // Set for all
2643+
native SetPlayerPathingLimitEx takes player whichPlayer, integer queueType, integer value returns nothing
26392644
constant native DecPlayerTechResearched takes player whichPlayer, integer techid, integer levels returns nothing
26402645
//
26412646

@@ -2648,35 +2653,37 @@ native ForceCountPlayers takes force whichForce returns integer
26482653
//
26492654

26502655
//============================================================================
2651-
// Fog Modifier API
2652-
//
2653-
native IsFogModifierPlayerMask takes fogmodifier whichFogModifier, integer playerMask returns boolean
2654-
native GetFogModifierPlayerMask takes fogmodifier whichFogModifier returns integer
2655-
native SetFogModifierPlayerMask takes fogmodifier whichFogModifier, integer playerMask returns nothing
2656-
native GetFogModifierForPlayer takes fogmodifier whichFogModifier returns player
2657-
native SetFogModifierForPlayer takes fogmodifier whichFogModifier, player whichPlayer returns nothing
2658-
native AddFogModifierPlayer takes fogmodifier whichFogModifier, player whichPlayer returns nothing
2659-
native RemoveFogModifierPlayer takes fogmodifier whichFogModifier, player whichPlayer returns nothing
2660-
native IsFogModifierFogState takes fogmodifier whichFogModifier, fogstate whichState returns boolean
2661-
native SetFogModifierFogState takes fogmodifier whichFogModifier, fogstate whichState, boolean isSet returns nothing
2656+
// Fog of War API
2657+
//
2658+
native FogUpdate takes nothing returns nothing
2659+
2660+
native IsFogModifierPlayerMask takes fogmodifier whichFogModifier, integer playerMask returns boolean
2661+
native GetFogModifierPlayerMask takes fogmodifier whichFogModifier returns integer
2662+
native SetFogModifierPlayerMask takes fogmodifier whichFogModifier, integer playerMask returns nothing
2663+
native GetFogModifierForPlayer takes fogmodifier whichFogModifier returns player
2664+
native SetFogModifierForPlayer takes fogmodifier whichFogModifier, player whichPlayer returns nothing
2665+
native AddFogModifierPlayer takes fogmodifier whichFogModifier, player whichPlayer returns nothing
2666+
native RemoveFogModifierPlayer takes fogmodifier whichFogModifier, player whichPlayer returns nothing
2667+
native IsFogModifierFogState takes fogmodifier whichFogModifier, fogstate whichState returns boolean
2668+
native SetFogModifierFogState takes fogmodifier whichFogModifier, fogstate whichState, boolean isSet returns nothing
26622669
// For FOG_OF_WAR_RECT: GetX/Y returns CenterX/CenterY | GetRadius returns area of a rectangle: minX + maxX * minY + maxY.
26632670
// For FOG_OF_WAR_RADIUS and FOG_OF_WAR_RADIUS_LOCATION behaves normally.
26642671
// Same logic applies to Setters.
2665-
native GetFogModifierX takes fogmodifier whichFogModifier returns real
2666-
native SetFogModifierX takes fogmodifier whichFogModifier, real x returns nothing
2667-
native GetFogModifierY takes fogmodifier whichFogModifier returns real
2668-
native SetFogModifierY takes fogmodifier whichFogModifier, real y returns nothing
2669-
native GetFogModifierZ takes fogmodifier whichFogModifier returns real
2670-
native SetFogModifierZ takes fogmodifier whichFogModifier, real z returns nothing
2671-
native GetFogModifierRadius takes fogmodifier whichFogModifier returns real
2672-
native SetFogModifierRadius takes fogmodifier whichFogModifier, real radius returns nothing
2673-
native SetFogModifierRadiusEx takes fogmodifier whichFogModifier, real x, real y, real radius returns nothing
2674-
native SetFogModifierPosition takes fogmodifier whichFogModifier, real x, real y returns nothing
2675-
native SetFogModifierPositionWithZ takes fogmodifier whichFogModifier, real x, real y, real z returns nothing
2676-
native SetFogModifierPositionLoc takes fogmodifier whichFogModifier, location whichLocation returns nothing
2677-
native GetFogModifierRect takes fogmodifier whichFogModifier returns rect
2678-
native SetFogModifierRect takes fogmodifier whichFogModifier, rect whichRect returns nothing
2679-
native SetFogModifierRectEx takes fogmodifier whichFogModifier, real minX, real minY, real maxX, real maxY returns nothing
2672+
native GetFogModifierX takes fogmodifier whichFogModifier returns real
2673+
native SetFogModifierX takes fogmodifier whichFogModifier, real x returns nothing
2674+
native GetFogModifierY takes fogmodifier whichFogModifier returns real
2675+
native SetFogModifierY takes fogmodifier whichFogModifier, real y returns nothing
2676+
native GetFogModifierZ takes fogmodifier whichFogModifier returns real
2677+
native SetFogModifierZ takes fogmodifier whichFogModifier, real z returns nothing
2678+
native GetFogModifierRadius takes fogmodifier whichFogModifier returns real
2679+
native SetFogModifierRadius takes fogmodifier whichFogModifier, real radius returns nothing
2680+
native SetFogModifierRadiusEx takes fogmodifier whichFogModifier, real x, real y, real radius returns nothing
2681+
native SetFogModifierPosition takes fogmodifier whichFogModifier, real x, real y returns nothing
2682+
native SetFogModifierPositionWithZ takes fogmodifier whichFogModifier, real x, real y, real z returns nothing
2683+
native SetFogModifierPositionLoc takes fogmodifier whichFogModifier, location whichLocation returns nothing
2684+
native GetFogModifierRect takes fogmodifier whichFogModifier returns rect
2685+
native SetFogModifierRect takes fogmodifier whichFogModifier, rect whichRect returns nothing
2686+
native SetFogModifierRectEx takes fogmodifier whichFogModifier, real minX, real minY, real maxX, real maxY returns nothing
26802687
//
26812688

26822689
//============================================================================
@@ -4238,11 +4245,19 @@ native SetUnitArmourType takes unit whichUnit, defensetype whichArmour re
42384245
native GetUnitArmour takes unit whichUnit returns real
42394246
native SetUnitArmour takes unit whichUnit, real armour returns nothing
42404247
native GetUnitTimeScale takes unit whichUnit returns real
4248+
native GetUnitBonusMoveSpeed takes unit whichUnit returns real
42414249
native GetUnitTotalMoveSpeed takes unit whichUnit returns real
42424250
native GetUnitBaseMoveSpeed takes unit whichUnit returns real
42434251
native SetUnitBaseMoveSpeed takes unit whichUnit, real baseMoveSpeed returns nothing
42444252
native GetUnitBonusMoveSpeedPercent takes unit whichUnit returns real
42454253
native SetUnitBonusMoveSpeedPercent takes unit whichUnit, real bonusMoveSpeedPercent returns nothing
4254+
native GetUnitTurnRate takes unit whichUnit returns real
4255+
native SetUnitTurnRate takes unit whichUnit, real turnRate returns nothing
4256+
native IsUnitTurningOnly takes unit whichUnit returns boolean
4257+
native UnitAllowMove takes unit whichUnit returns nothing
4258+
native UnitAllowTurningOnly takes unit whichUnit returns nothing
4259+
native GetUnitPathingLimit takes unit whichUnit, integer level returns integer // Levels: 0 or 1.
4260+
native SetUnitPathingLimit takes unit whichUnit, integer level, integer limit returns nothing // Limit is 0 to 32,767 (anything lower than 0 will default to -32,767). Use -1 (or any other negative number) to "erase" limit.
42464261
native GetUnitPlayerColour takes unit whichUnit returns playercolor
42474262
native SetUnitPlayerColour takes unit whichUnit, playercolor color returns nothing
42484263
native GetUnitVertexColour takes unit whichUnit returns integer
@@ -4704,6 +4719,10 @@ native SetFrameCheckState takes framehandle whichFrame, boolean isCheck r
47044719

47054720
native SetMinimapTexture takes string texturePath returns boolean
47064721

4722+
// CShrinkingButton / CCommandButton API | CShrinkingButton -> SHRINKINGBUTTON (Recently added type, based off CSimpleButton).
4723+
native EnableFrameButtonPushAnimation takes framehandle whichFrame, boolean enable returns nothing
4724+
//
4725+
47074726
// CSlider / CScollBar API | Scrollbar extends slider, so both use the same logic.
47084727
native GetFrameSlider takes framehandle whichFrame returns framehandle
47094728
native AddFrameSlider takes framehandle whichFrame returns framehandle

0 commit comments

Comments
 (0)