Unryze Jass API

Данный проект является полноценным "патчем"/дополнением для патчей 1.24e/1.26a/1.27a/1.27b/1.28f, который добавляет…
Данный проект является полноценным "патчем"/дополнением для патчей 1.24e/1.26a/1.27a/1.27b/1.28f, который добавляет новые нативные функции для JASS, список со временем будет дополняться.
Однако, так же планируется интегрировать и другие проекты (если таковые появятся), как пример War3LUA.
В данный момент выпущен альфа-релиз, для тестов и нахождения недочётов.
Однако, так же планируется интегрировать и другие проекты (если таковые появятся), как пример War3LUA.
В данный момент выпущен альфа-релиз, для тестов и нахождения недочётов.
Уровень:
4
Руководитель:
Активность:
2
Тематика:
Моды
Создан на сайте:
10.10.2022
ID:
2212
Комментарии проекта Unryze Jass API
UjAPI - Система Магазина
Прокрутить к ресурсу
UjAPI - Пример ListBox без FDF
О системе
Ред. Unryze
Прокрутить к ресурсу
UjAPI - Что нового?
Прокрутить к ресурсу
v1.0.37.137
type sprite extends agent
constant camerafield CAMERA_FIELD_NEARZ = ConvertCameraField(7)
constant camerafield CAMERA_FIELD_LOCAL_PITCH = ConvertCameraField(8)
constant camerafield CAMERA_FIELD_LOCAL_YAW = ConvertCameraField(9)
constant camerafield CAMERA_FIELD_LOCAL_ROLL = ConvertCameraField(10) Not implemented yet
native GetDoodadAnimationOffsetPercent takes doodad whichDoodad returns real
native GetSpecialEffectSprite takes effect whichEffect returns sprite
native GetSpecialEffectAnimationOffsetPercent takes effect whichEffect returns real
native GetTrackableSprite takes trackable whichTrackable returns sprite
native GetTrackableAnimationOffsetPercent takes trackable whichTrackable returns real
native GetWidgetSprite takes widget whichWidget returns sprite
native GetWidgetAnimationOffsetPercent takes widget whichWidget returns real
native GetDestructableSprite takes destructable whichDestructable returns sprite
native GetDestructableAnimationOffsetPercent takes destructable whichDestructable returns real
native GetItemSprite takes item whichItem returns sprite
native GetItemAnimationOffsetPercent takes item whichItem returns real
native GetUnitSprite takes unit whichUnit returns sprite
native GetUnitAnimationOffsetPercent takes unit whichUnit returns real
native LaunchProjectileAt takes projectile whichProjectile, real x, real y, real z returns nothing
native GetProjectileSprite takes projectile whichProjectile returns sprite
native GetProjectileAnimationOffsetPercent takes projectile whichProjectile returns real
native SetProjectileTargetPointX takes projectile whichProjectile, real x returns nothing
native SetProjectileTargetPointY takes projectile whichProjectile, real y returns nothing
native SetProjectileTargetPointZ takes projectile whichProjectile, real z returns nothing
native SetProjectileTargetPositionLoc takes projectile whichProjectile, location loc returns nothing
native GetFrameSprite takes framehandle whichFrame returns sprite
native GetFrameSpriteAnimationOffsetPercent takes framehandle whichFrame returns real
native CreateSprite takes boolean isUber returns sprite
native AttachSpriteToTarget takes sprite whichSprite, sprite targetSprite, string attachPointName returns sprite
native AddSpriteToTarget takes string modelName, sprite targetSprite, string attachPointName returns sprite
native GetSpriteChildrenCount takes sprite whichSprite returns integer
native GetSpriteChildById takes sprite whichSprite, integer index returns sprite
native RemoveSprite takes sprite whichSprite returns nothing
native IsSpriteUber takes sprite whichSprite returns boolean
native GetSpriteX takes sprite whichSprite returns real
native GetSpriteY takes sprite whichSprite returns real
native GetSpriteZ takes sprite whichSprite returns real
native GetSpriteHeight takes sprite whichSprite returns real
native GetSpritePositionLoc takes sprite whichSprite returns location
native SetSpritePositionEx takes sprite whichSprite, real x, real y, real z returns nothing
native SetSpritePosition takes sprite whichSprite, real x, real y returns nothing
native SetSpritePositionLoc takes sprite whichSprite, location loc returns nothing
native SetSpriteX takes sprite whichSprite, real x returns nothing
native SetSpriteY takes sprite whichSprite, real y returns nothing
native SetSpriteZ takes sprite whichSprite, real z returns nothing
native SetSpriteHeight takes sprite whichSprite, real height returns nothing
native GetSpriteScreenX takes sprite whichSprite returns real
native GetSpriteScreenY takes sprite whichSprite returns real
native GetSpriteScale takes sprite whichSprite returns real
native SetSpriteScale takes sprite whichSprite, real scale returns nothing
native GetSpriteTimeScale takes sprite whichSprite returns real
native SetSpriteTimeScale takes sprite whichSprite, real timescale returns nothing
native SetSpritePlayerColour takes sprite whichSprite, playercolor color returns nothing
native GetSpriteColour takes sprite whichSprite returns integer
native SetSpriteColour takes sprite whichSprite, integer colour returns nothing
native SetSpriteAlpha takes sprite whichSprite, integer alpha returns nothing
native SetSpriteVertexColour takes sprite whichSprite, integer red, integer green, integer blue, integer alpha returns nothing
native SetSpriteMatrixScale takes sprite whichSprite, real x, real y, real z returns nothing
native ResetSpriteMatrix takes sprite whichSprite returns nothing
native SetSpriteOrientationEx takes sprite whichSprite, real yaw, real pitch, real roll, integer eulerOrder returns nothing
native GetSpriteYaw takes sprite whichSprite returns real
native SetSpriteYaw takes sprite whichSprite, real yaw returns nothing
native GetSpriteFacing takes sprite whichSprite returns real
native SetSpriteFacing takes sprite whichSprite, real facing returns nothing
native GetSpritePitch takes sprite whichSprite returns real
native SetSpritePitch takes sprite whichSprite, real pitch returns nothing
native GetSpriteRoll takes sprite whichSprite returns real
native SetSpriteRoll takes sprite whichSprite, real roll returns nothing
native SetSpriteOrientation takes sprite whichSprite, real yaw, real pitch, real roll returns nothing
native SetSpriteMaterialTexture takes sprite whichSprite, string textureName, integer materialId, integer textureIndex returns nothing
native SetSpriteTexture takes sprite whichSprite, string textureName, integer textureIndex returns nothing
native SetSpriteReplaceableTexture takes sprite whichSprite, string textureName, integer textureIndex returns nothing
native SetSpriteModel takes sprite whichSprite, string modelName returns nothing
native SetSpriteModelEx takes sprite whichSprite, string modelName, integer playerColour returns nothing
native GetSpriteModelObjectPositionX takes sprite whichSprite, string whichObject returns real
native GetSpriteModelObjectPositionY takes sprite whichSprite, string whichObject returns real
native GetSpriteModelObjectPositionZ takes sprite whichSprite, string whichObject returns real
native GetSpriteModelObjectPositionLoc takes sprite whichSprite, string whichObject returns location
native GetSpriteCurrentAnimationId takes sprite whichSprite returns integer
native GetSpriteCurrentAnimationName takes sprite whichSprite returns string
native SetSpriteAnimationWithRarityByIndex takes sprite whichSprite, integer animIndex, raritycontrol rarity returns nothing
native SetSpriteAnimationWithRarity takes sprite whichSprite, string animationName, raritycontrol rarity returns nothing
native SetSpriteAnimationByIndex takes sprite whichSprite, integer animIndex returns nothing
native SetSpriteAnimation takes sprite whichSprite, string animationName returns nothing
native QueueSpriteAnimationByIndex takes sprite whichSprite, integer animIndex returns nothing
native QueueSpriteAnimation takes sprite whichSprite, string animationName returns nothing
native GetSpriteAnimationOffsetPercent takes sprite whichSprite returns real
native SetSpriteAnimationOffsetPercent takes sprite whichSprite, real percent returns nothing
Пометка: приоритет: CSimpleFrame, CLayer (под курсором), CLayer (подсвеченный/в фокусе).
Пометка: эта информация больше для меня, так как эти изменения никак не должны отразиться на игре.
Пометка: чтобы пользоваться этим изменением в JNGP нужно как-то обновить pjass, чтобы он позволял писать более 1024 символов в строке.
Выбор редакции
UjAPI
Прокрутить к ресурсу
v1.0.37.137
type sprite extends agent
constant camerafield CAMERA_FIELD_NEARZ = ConvertCameraField(7)
constant camerafield CAMERA_FIELD_LOCAL_PITCH = ConvertCameraField(8)
constant camerafield CAMERA_FIELD_LOCAL_YAW = ConvertCameraField(9)
constant camerafield CAMERA_FIELD_LOCAL_ROLL = ConvertCameraField(10) Not implemented yet
native GetDoodadAnimationOffsetPercent takes doodad whichDoodad returns real
native GetSpecialEffectSprite takes effect whichEffect returns sprite
native GetSpecialEffectAnimationOffsetPercent takes effect whichEffect returns real
native GetTrackableSprite takes trackable whichTrackable returns sprite
native GetTrackableAnimationOffsetPercent takes trackable whichTrackable returns real
native GetWidgetSprite takes widget whichWidget returns sprite
native GetWidgetAnimationOffsetPercent takes widget whichWidget returns real
native GetDestructableSprite takes destructable whichDestructable returns sprite
native GetDestructableAnimationOffsetPercent takes destructable whichDestructable returns real
native GetItemSprite takes item whichItem returns sprite
native GetItemAnimationOffsetPercent takes item whichItem returns real
native GetUnitSprite takes unit whichUnit returns sprite
native GetUnitAnimationOffsetPercent takes unit whichUnit returns real
native LaunchProjectileAt takes projectile whichProjectile, real x, real y, real z returns nothing
native GetProjectileSprite takes projectile whichProjectile returns sprite
native GetProjectileAnimationOffsetPercent takes projectile whichProjectile returns real
native SetProjectileTargetPointX takes projectile whichProjectile, real x returns nothing
native SetProjectileTargetPointY takes projectile whichProjectile, real y returns nothing
native SetProjectileTargetPointZ takes projectile whichProjectile, real z returns nothing
native SetProjectileTargetPositionLoc takes projectile whichProjectile, location loc returns nothing
native GetFrameSprite takes framehandle whichFrame returns sprite
native GetFrameSpriteAnimationOffsetPercent takes framehandle whichFrame returns real
native CreateSprite takes boolean isUber returns sprite
native AttachSpriteToTarget takes sprite whichSprite, sprite targetSprite, string attachPointName returns sprite
native AddSpriteToTarget takes string modelName, sprite targetSprite, string attachPointName returns sprite
native GetSpriteChildrenCount takes sprite whichSprite returns integer
native GetSpriteChildById takes sprite whichSprite, integer index returns sprite
native RemoveSprite takes sprite whichSprite returns nothing
native IsSpriteUber takes sprite whichSprite returns boolean
native GetSpriteX takes sprite whichSprite returns real
native GetSpriteY takes sprite whichSprite returns real
native GetSpriteZ takes sprite whichSprite returns real
native GetSpriteHeight takes sprite whichSprite returns real
native GetSpritePositionLoc takes sprite whichSprite returns location
native SetSpritePositionEx takes sprite whichSprite, real x, real y, real z returns nothing
native SetSpritePosition takes sprite whichSprite, real x, real y returns nothing
native SetSpritePositionLoc takes sprite whichSprite, location loc returns nothing
native SetSpriteX takes sprite whichSprite, real x returns nothing
native SetSpriteY takes sprite whichSprite, real y returns nothing
native SetSpriteZ takes sprite whichSprite, real z returns nothing
native SetSpriteHeight takes sprite whichSprite, real height returns nothing
native GetSpriteScreenX takes sprite whichSprite returns real
native GetSpriteScreenY takes sprite whichSprite returns real
native GetSpriteScale takes sprite whichSprite returns real
native SetSpriteScale takes sprite whichSprite, real scale returns nothing
native GetSpriteTimeScale takes sprite whichSprite returns real
native SetSpriteTimeScale takes sprite whichSprite, real timescale returns nothing
native SetSpritePlayerColour takes sprite whichSprite, playercolor color returns nothing
native GetSpriteColour takes sprite whichSprite returns integer
native SetSpriteColour takes sprite whichSprite, integer colour returns nothing
native SetSpriteAlpha takes sprite whichSprite, integer alpha returns nothing
native SetSpriteVertexColour takes sprite whichSprite, integer red, integer green, integer blue, integer alpha returns nothing
native SetSpriteMatrixScale takes sprite whichSprite, real x, real y, real z returns nothing
native ResetSpriteMatrix takes sprite whichSprite returns nothing
native SetSpriteOrientationEx takes sprite whichSprite, real yaw, real pitch, real roll, integer eulerOrder returns nothing
native GetSpriteYaw takes sprite whichSprite returns real
native SetSpriteYaw takes sprite whichSprite, real yaw returns nothing
native GetSpriteFacing takes sprite whichSprite returns real
native SetSpriteFacing takes sprite whichSprite, real facing returns nothing
native GetSpritePitch takes sprite whichSprite returns real
native SetSpritePitch takes sprite whichSprite, real pitch returns nothing
native GetSpriteRoll takes sprite whichSprite returns real
native SetSpriteRoll takes sprite whichSprite, real roll returns nothing
native SetSpriteOrientation takes sprite whichSprite, real yaw, real pitch, real roll returns nothing
native SetSpriteMaterialTexture takes sprite whichSprite, string textureName, integer materialId, integer textureIndex returns nothing
native SetSpriteTexture takes sprite whichSprite, string textureName, integer textureIndex returns nothing
native SetSpriteReplaceableTexture takes sprite whichSprite, string textureName, integer textureIndex returns nothing
native SetSpriteModel takes sprite whichSprite, string modelName returns nothing
native SetSpriteModelEx takes sprite whichSprite, string modelName, integer playerColour returns nothing
native GetSpriteModelObjectPositionX takes sprite whichSprite, string whichObject returns real
native GetSpriteModelObjectPositionY takes sprite whichSprite, string whichObject returns real
native GetSpriteModelObjectPositionZ takes sprite whichSprite, string whichObject returns real
native GetSpriteModelObjectPositionLoc takes sprite whichSprite, string whichObject returns location
native GetSpriteCurrentAnimationId takes sprite whichSprite returns integer
native GetSpriteCurrentAnimationName takes sprite whichSprite returns string
native SetSpriteAnimationWithRarityByIndex takes sprite whichSprite, integer animIndex, raritycontrol rarity returns nothing
native SetSpriteAnimationWithRarity takes sprite whichSprite, string animationName, raritycontrol rarity returns nothing
native SetSpriteAnimationByIndex takes sprite whichSprite, integer animIndex returns nothing
native SetSpriteAnimation takes sprite whichSprite, string animationName returns nothing
native QueueSpriteAnimationByIndex takes sprite whichSprite, integer animIndex returns nothing
native QueueSpriteAnimation takes sprite whichSprite, string animationName returns nothing
native GetSpriteAnimationOffsetPercent takes sprite whichSprite returns real
native SetSpriteAnimationOffsetPercent takes sprite whichSprite, real percent returns nothing
Пометка: приоритет: CSimpleFrame, CLayer (под курсором), CLayer (подсвеченный/в фокусе).
Пометка: эта информация больше для меня, так как эти изменения никак не должны отразиться на игре.
Пометка: чтобы пользоваться этим изменением в JNGP нужно как-то обновить pjass, чтобы он позволял писать более 1024 символов в строке.
UjAPI - API Снарядов
Прокрутить к ресурсу
UjAPI - Система Выбора Героев
Ред. Алексей Андреич
Идея была проста:
создать SIMPLEFRAME, с помощью функции SetFrameTextureEx сделать из фрейма рамочку. В нее поместит портрет персонажа.
Как оказалось портрет всегда отображается слоем ниже SIMPLEFRAME.
Функция SetFramePriority не помогает. Она может установить порядок отрисовки двух SIMPLEFRAME, но не Портрета.
По итогу нашел костыльное решение.
Создать после SIMPLEFRAME, новый фрейм типа BACKDROP - он всегда отображается поверх SIMPLEFRAME, задать ему прозрачную текстуру.
Делаем портрет дочерним по отношению к BACKDROP - и вуаля, теперь портрет сверху нашей рамочки.
Ред. Unryze
SetFrameSpriteModel/SetFrameSpriteModelEx реально создают эту странную проблему, буду пытаться решить.-- Исправлено на следующую версию.
Ред. Алексей Андреич
У себя пока что временно поправил проверкой, получал ли данный игрок уже героя или нет.
По моим наблюдениям, это появляется после создания спрайта,
и использования функции SetFrameSpriteModelEx/SetFrameSpriteModel(), конкретно при передать корректного пути модели в функцию.