Добавлен , опубликован

v1.1.15.218

UjAPI.dll

1. Новые Константы:
	constant frameeventtype				FRAMEEVENT_FRAME_ITEM_CHANGED								= ConvertFrameEventType(10)
	constant controlstyleflag 			CONTROL_STYLE_DRAW											= ConvertControlStyleFlag(32)
2. Новые Нативные Функции:
	native BitwiseShiftLeftLogical							takes integer i, integer bitsToShift returns integer
	native BitwiseShiftRightLogical							takes integer i, integer bitsToShift returns integer
	//
	native CountUnitAbilities								takes unit whichUnit, boolean alsoCountBuffs returns integer
	native CountUnitBuffs									takes unit whichUnit returns integer
	//
	native GetBuffOwningAbility								takes buff whichbuff returns ability // experimental
	native SetBuffOwningAbility								takes buff whichBuff, ability whichAbility returns nothing // experimental
	//
	native SetProjectileSourceAbility						takes projectile whichProjectile, ability whichAbility returns nothing
	//
	native GetFrameChildrenCountEx							takes framehandle whichFrame, integer listId returns integer // listId: CFrames: 0 for default | 1 for layouts (will return CLayer) | CSimpleFrames 0 - 6 | CSimpleRegions any number, as they only have 1 child node.
	native GetFrameChildEx									takes framehandle whichFrame, integer listId, integer index returns framehandle
	native GetFrameTextAlignmentValue						takes framehandle whichFrame, integer id returns real // CSimpleFontString: 0 - x, 1 - y | CTextFrame: 0 - x, 1 - y, 2 - x Shadow, 3 - y Shadow, 4 = FontJustificationOffset
	native SetFrameTextAlignmentValue						takes framehandle whichFrame, integer id, real offset returns nothing
	native GetTriggerFrameTargetFrame						takes nothing returns framehandle
3. Исправлена поддержка отрицательных чисел с сеттерами цифровых полей, ранее они обрабатывались без знака.
4. CListBox API теперь работает с CMenu.
5. CListBox API теперь работает с CPopupMenu.
6. CListBox API теперь работает с CRadioGroup.
7. GetFrameTextColourEx теперь работает с CListBoxItem.
8. SetFrameTextColourEx теперь работает с CListBoxItem.
9. SetFrameFont теперь работает с CTimerTextFrame.
10. SetFrameFont теперь работает с CListBoxItem.
11. SetFrameTextAlignment теперь работает с CTimerTextFrame.
12. SetFrameTextAlignment теперь работает с CListBoxItem.
13. SetFrameTextVerticalAlignment теперь работает с CTimerTextFrame.
14. SetFrameTextVerticalAlignment теперь работает с CListBoxItem.
15. SetFrameTextHorizontalAlignment теперь работает с CTimerTextFrame.
16. SetFrameTextHorizontalAlignment теперь работает с CListBoxItem.
17. FRAMEEVENT_POPUPMENU_ITEM_CHANGED теперь работает с CListBox.
18. AddFrameListItem теперь работает с CRadioGroup.
19. FRAMEEVENT_POPUPMENU_ITEM_CHANGED теперь работает с CRadioGroup.
20. Исправлено SetLightningTargetX устанавливающее x источника, вместо цели.
21. Исправлено SetLightningTargetY устанавливающее y источника, вместо цели.
22. Исправлено SetLightningTargetZ устанавливающее z источника, вместо цели.
23. Исправлено SetLightningTargetPositionLoc устанавливающее позицию источника, вместо цели.
24. Исправлено GroupContainsUnit всегда возвращающее true.
25. Перенесён весь внутренний код jFramea API во FrameAPI. Это пометка для себя, данное изменение не должно повлиять ни на что.
26. Исправлено BlzSetUnitMaxMana устанавливающее максимальное здоровье вместо маны.
27. Исправлено не работающее SetFrameTextHorizontalAlignment.
28. Исправлено SetFrameTextColourEx для CSimpleFontString.

Launcher

1. CLI теперь может обрабатывать эти warcraft 3 комманды: d3d, opengl, swtnl, classic, datadir, gametype, fullscreen.
2. Добавлена опция Dev Mode для AngelScript.
3. Добавлена опция Console для AngelScript.
4. Добавлена опция No Warnings для AngelScript.
5. Добавлена опция "dev" CLI команда для AngelScript.
6. Добавлена опция "console" CLI команда для AngelScript.
7. Добавлена опция "nowarnings" CLI команда для AngelScript.
8. Добавлен модуль FastMenu.dll в Modules.
9. Добавлена опция Fast Menu для Launcher.
10. Добавлена -fastmenu CLI команда для Launcher.
`
ОЖИДАНИЕ РЕКЛАМЫ...

Показан только небольшой набор комментариев вокруг указанного. Перейти к актуальным.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.14.65

  1. Новые Нативные Функции:
native CreateImageSimple takes string file, real sizeX, real sizeY, real posX, real posY, real posZ, integer imageType returns image
native GetImageType takes image whichImage returns integer
native GetImageX takes image whichImage returns real
native SetImageX takes image whichImage, real sizeX returns nothing
native GetImageY takes image whichImage returns real
native SetImageY takes image whichImage, real sizeY returns nothing
native GetImageZ takes image whichImage returns real
native SetImageZ takes image whichImage, real sizeZ returns nothing
native GetImagePositionLocation takes image whichImage returns location
native SetImagePositionLocation takes image whichImage, location whichLocation returns nothing
native GetImageOriginX takes image whichImage returns real
native SetImageOriginX takes image whichImage, real originX returns nothing
native GetImageOriginY takes image whichImage returns real
native SetImageOriginY takes image whichImage, real originY returns nothing
native SetImageOrigin takes image whichImage, real originX, real originY returns nothing
native GetImageSizeX takes image whichImage returns real
native SetImageSizeX takes image whichImage, real sizeX returns nothing
native GetImageSizeY takes image whichImage returns real
native SetImageSizeY takes image whichImage, real sizeY returns nothing
native SetImageSize takes image whichImage, real size returns nothing
native SetImageSizeEx takes image whichImage, real sizeX, real sizeY returns nothing
native GetImageColour takes image whichImage returns integer
native IsImageRendered takes image whichImage returns boolean
native IsImageRenderAlways takes image whichImage returns boolean
native IsImageRenderAboveWater takes image whichImage returns boolean
native IsImageVisible takes image whichImage returns boolean
native GetImageConstantHeight takes image whichImage returns real
native GetImageTexture takes image whichImage returns string
native SetImageTexture takes image whichImage, string imagePath returns nothing
  1. Исправлена Критическая Ошибка с событиями OnDamaging/OnDamage, который происходил в очень неоптимизированных картах (проблема связана с плохим кодом Jass в этих картах).
    Пометка: причина была в виду С++ оптимизации, которая просто на просто очищала данные быстрее, чем они до конца были использованы.
  2. Исправлена критическая ощибка связанная с выделением магазинов/улучшения заклинаний героя/спелбуков и т.д.
    Пометка: данная ошибка была добавлена в виду "велосипедного" метода имплементации экспериментальной функции SetAbilityOrderId.
  3. Добавлена псевдо-поддержка этих JN нативных функций:
native JNDailySave takes string MapId, string UserId, string SecretKey, string Character, string DailyType returns string
native JNDailyCheckToday takes string MapId, string UserId, string SecretKey, string Character, string DailyType returns string
native JNDailyCheckTodayList takes string MapId, string UserId, string SecretKey, string Character, string DailyType returns string
native JNDailyCountWeek takes string MapId, string UserId, string SecretKey, string Character, string DailyType, string WeekDay returns string
native JNDailyCountWeekList takes string MapId, string UserId, string SecretKey, string Character, string DailyType, string WeekDay returns string
native JNDailyCountMonth takes string MapId, string UserId, string SecretKey, string Character, string DailyType returns string
native JNDailyCountMonthList takes string MapId, string UserId, string SecretKey, string Character, string DailyType returns string
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.15.67

  1. Новые Константы
constant abilityintegerfield ABILITY_IF_BUTTON_HOTKEY_ALL = ConvertAbilityIntegerField('ahtk') Set only
constant abilitybooleanfield ABILITY_BF_HOMING = ConvertAbilityBooleanField('amho')
constant itemintegerfield ITEM_IF_TINTING_COLOR = ConvertItemIntegerField('icol')
constant itemintegerfield ITEM_IF_LEVEL_UNCLASSIFIED = ConvertItemIntegerField('ilvo')
constant itemintegerfield ITEM_IF_GOLD_COST = ConvertItemIntegerField('igol')
constant itemintegerfield ITEM_IF_LUMBER_COST = ConvertItemIntegerField('ilum')
constant itemintegerfield ITEM_IF_PRIORITY = ConvertItemIntegerField('ipri')
constant itemintegerfield ITEM_IF_STOCK_REPLENISH_INTERVAL = ConvertItemIntegerField('istr')
constant itemintegerfield ITEM_IF_STOCK_START_DELAY = ConvertItemIntegerField('isst')
constant itembooleanfield ITEM_BF_IGNORE_COOLDOWN = ConvertItemBooleanField('iicd')
constant itembooleanfield ITEM_BF_VALID_FOR_TRANSFORMATION = ConvertItemBooleanField('imor')
constant itemrealfield ITEM_RF_SELECTION_SIZE = ConvertItemRealField('issc')
constant itemstringfield ITEM_SF_NAME = ConvertItemStringField('unam')
constant itemstringfield ITEM_SF_DESCRIPTION = ConvertItemStringField('ides')
constant itemstringfield ITEM_SF_TOOLTIP_NORMAL = ConvertItemStringField('utip')
constant itemstringfield ITEM_SF_TOOLTIP_EXTENDED = ConvertItemStringField('utub')
constant unitintegerfield ITEM_IF_GOLD_COST = ConvertItemIntegerField('igol')
constant unitintegerfield ITEM_IF_LUMBER_COST = ConvertItemIntegerField('ilum')
constant unitintegerfield ITEM_IF_STOCK_MAXIMUM = ConvertItemIntegerField('isto')
constant unitintegerfield UNIT_IF_TINTING_COLOR = ConvertUnitIntegerField('ucol')
constant unitintegerfield UNIT_IF_PROPER_NAMES_COUNT = ConvertUnitIntegerField('upru') Get Only
constant unitrealfield UNIT_RF_SIGHT_RADIUS_DAY = ConvertUnitRealField('usid')
constant unitrealfield UNIT_RF_SIGHT_RADIUS_NIGHT = ConvertUnitRealField('usin')
constant unitstringfield UNIT_SF_TOOLTIP_NORMAL = ConvertUnitStringField('utip')
constant unitstringfield UNIT_SF_TOOLTIP_EXTENDED = ConvertUnitStringField('utub')
constant unitstringfield UNIT_SF_PROPER_NAME = ConvertUnitStringField('uprn')
  1. Новые Нативные Функции:
native GetHandleReferenceCount takes handle whichHandle returns integer
native GetHandleBaseTypeId takes handle whichHandle returns integer this returns '+w3u' from unit, if it was passed as handle, and so on.
native GetHandleBaseTypeName takes handle whichHandle returns string this returns CUnit from unit, if it was passed as handle, and so on.
native GetFilterHandle takes nothing returns handle
native GetEnumHandle takes nothing returns handle
native EnumHandlesOfType takes integer handleBaseTypeId, boolexpr filter, code handlerFunc returns nothing
native SetImageOrigin takes image whichImage, real origin returns nothing
native SetAbilityRemainingCooldown takes ability whichAbility, real cooldown returns boolean
native SetUnitPointValueByType takes integer unitType, integer newPointValue returns nothing
native EnumDestructablesInRange takes real x, real y, real radius, boolexpr filter, code handlerFunc returns nothing
native EnumItemsInRange takes real x, real y, real radius, boolexpr filter, code handlerFunc returns nothing
native GetTriggerSpecialEffect takes nothing returns effect
native GetFilterSpecialEffect takes nothing returns effect
native GetEnumSpecialEffect takes nothing returns effect
native EnumSpecialEffectsInRange takes real x, real y, real radius, boolexpr filter, code handlerFunc returns nothing
native GetTriggerTrackable takes nothing returns trackable
native GetFilterTrackable takes nothing returns trackable
native GetEnumTrackable takes nothing returns trackable
native EnumTrackablesInRange takes real x, real y, real radius, boolexpr filter, code handlerFunc returns nothing
native IsMissileAlive takes missile whichMissile returns boolean
native GetFilterMissile takes nothing returns missile
native GetEnumMissile takes nothing returns missile
native EnumMissilesInRange takes real x, real y, real radius, boolexpr filter, code handlerFunc returns nothing
native ResetAbilityFieldData takes ability whichAbility returns boolean Restores original ability data, meaning it reverts any and all changes made by Field API. Returns true if reset was needed.
native GetUnitAttackRemainingDamagePoint takes unit whichUnit returns real
native SetUnitAttackRemainingDamagePoint takes unit whichUnit real time returns nothing
native GetUnitAttackRemainingBackswing takes unit whichUnit returns real
native SetUnitAttackRemainingBackswing takes unit whichUnit real time returns nothing
  1. Удалены все "дубликаты" нативных функций типа GetAbilityBaseManaCostById, они теперь заменены API инстанса/полей. Список удалённых нативных функций:
Ability API
native GetAbilityBaseManaCostById takes integer aid, integer level returns integer
native SetAbilityBaseManaCostById takes integer aid, integer level, integer manaCost returns nothing
native GetAbilityBaseCooldownById takes integer aid, integer level returns real
native SetAbilityBaseCooldownById takes integer aid, integer level, real cooldown returns nothing
native GetAbilityBaseHotkeyById takes integer aid returns oskeytype
native SetAbilityBaseHotkeyById takes integer aid, oskeytype whichKey returns nothing
native GetAbilityBaseUnHotkeyById takes integer aid returns oskeytype
native SetAbilityBaseUnHotkeyById takes integer aid, oskeytype whichKey returns nothing
native GetAbilityBaseResearchHotkeyById takes integer aid returns oskeytype
native SetAbilityBaseResearchHotkeyById takes integer aid, oskeytype whichKey returns nothing
native GetAbilityBaseEffectSoundById takes integer aid returns string
native SetAbilityBaseEffectSoundById takes integer aid, string text returns nothing
native GetAbilityBaseGlobalMessageById takes integer aid returns string
native SetAbilityBaseGlobalMessageById takes integer aid, string text returns nothing
native GetAbilityBaseGlobalSoundById takes integer aid returns string
native SetAbilityBaseGlobalSoundById takes integer aid, string text returns nothing
native GetAbilityBaseButtonXById takes integer aid returns integer
native SetAbilityBaseButtonXById takes integer aid, integer positionX returns nothing
native GetAbilityBaseButtonYById takes integer aid returns integer
native SetAbilityBaseButtonYById takes integer aid, integer positionY returns nothing
native GetAbilityBaseUnButtonXById takes integer aid returns integer
native SetAbilityBaseUnButtonXById takes integer aid, integer positionX returns nothing
native GetAbilityBaseUnButtonYById takes integer aid returns integer
native SetAbilityBaseUnButtonYById takes integer aid, integer positionY returns nothing
native GetAbilityBaseResearchButtonXById takes integer aid returns integer
native SetAbilityBaseResearchButtonXById takes integer aid, integer positionX returns nothing
native GetAbilityBaseResearchButtonYById takes integer aid returns integer
native SetAbilityBaseResearchButtonYById takes integer aid, integer positionY returns nothing
native GetAbilityBaseMissileSpeedById takes integer aid returns real
native SetAbilityBaseMissileSpeedById takes integer aid, real missileSpeed returns nothing
native GetAbilityBaseMissileArcById takes integer aid returns real
native SetAbilityBaseMissileArcById takes integer aid, real missileArc returns nothing
native GetAbilityBaseIsMissileHomingById takes integer aid returns boolean
native SetAbilityBaseIsMissileHomingById takes integer aid, boolean ishoming returns nothing
native GetAbilityBaseSpellDetailsById takes integer aid returns integer
native SetAbilityBaseSpellDetailsById takes integer aid, integer level returns nothing
native GetAbilityBaseTipById takes integer aid, integer level returns string
native SetAbilityBaseTipById takes integer aid, integer level, string text returns nothing
native GetAbilityBaseUnTipById takes integer aid, integer level returns string
native SetAbilityBaseUnTipById takes integer aid, integer level, string text returns nothing
native GetAbilityBaseUberTipById takes integer aid, integer level returns string
native SetAbilityBaseUberTipById takes integer aid, integer level, string text returns nothing
native GetAbilityBaseUnUberTipById takes integer aid, integer level returns string
native SetAbilityBaseUnUberTipById takes integer aid, integer level, string text returns nothing
native SetAbilityBaseHotkeyByIdEx takes integer aid, oskeytype whichKey returns nothing
Item API
native GetItemBaseNameById takes integer itemId returns string
native SetItemBaseNameById takes integer itemId, string name returns nothing
native GetItemBaseDescriptionById takes integer itemId returns string
native SetItemBaseDescriptionById takes integer itemId, string name returns nothing
native GetItemBaseIconById takes integer itemId returns string
native SetItemBaseIconById takes integer itemId, string path returns nothing
native GetItemBaseHotkeyById takes integer itemId returns oskeytype
native SetItemBaseHotkeyById takes integer itemId, oskeytype whichKey returns nothing
native GetItemBaseTipById takes integer itemId returns string
native SetItemBaseTipById takes integer itemId, string tip returns nothing
native GetItemBaseUberTipById takes integer itemId returns string
native SetItemBaseUberTipById takes integer itemId, string tip returns nothing
native GetItemBaseGoldCostById takes integer itemId returns integer
native SetItemBaseGoldCostById takes integer itemId, integer goldcost returns nothing
native GetItemBaseLumberCostById takes integer itemId returns integer
native SetItemBaseLumberCostById takes integer itemId, integer lumbercost returns nothing
native GetItemBaseStockMaximumById takes integer itemId returns integer
native SetItemBaseStockMaximumById takes integer itemId, integer stockMax returns nothing
native GetItemBaseStockReplenishIntervalById takes integer itemId returns real
native SetItemBaseStockReplenishIntervalById takes integer itemId, real replenishInterval returns nothing
native GetItemBaseStockStartDelayById takes integer itemId returns real
native SetItemBaseStockStartDelayById takes integer itemId, real stockStartDelay returns nothing
native GetItemBasePriorityById takes integer itemId returns integer
native SetItemBasePriorityById takes integer itemId, integer priority returns nothing
native GetItemBaseLevelById takes integer itemId returns integer
native SetItemBaseLevelById takes integer itemId, integer level returns nothing
native GetItemBaseOldLevelById takes integer itemId returns integer
native SetItemBaseOldLevelById takes integer itemId, integer oldlevel returns nothing
native GetItemBaseClassificationById takes integer itemId returns integer
native SetItemBaseClassificationById takes integer itemId, integer classifictaionId returns nothing
native GetItemBaseIsMorphById takes integer itemId returns boolean
native SetItemBaseIsMorphById takes integer itemId, boolean flag returns nothing
native GetItemBaseIsPickRandomById takes integer itemId returns boolean
native SetItemBaseIsPickRandomById takes integer itemId, boolean flag returns nothing
native GetItemBaseChargesById takes integer itemId returns integer
native SetItemBaseChargesById takes integer itemId, integer charges returns nothing
native GetItemBaseCooldownIdById takes integer itemId returns integer
native SetItemBaseCooldownIdById takes integer itemId, integer cooldownId returns nothing
native GetItemBaseIsIgnoreCooldownById takes integer itemId returns boolean
native SetItemBaseIsIgnoreCooldownById takes integer itemId, boolean flag returns nothing
native GetItemBaseIsPowerUpById takes integer itemId returns boolean
native SetItemBaseIsPowerUpById takes integer itemId, boolean flag returns nothing
native GetItemBaseIsPawnableById takes integer itemId returns boolean
native SetItemBaseIsPawnableById takes integer itemId, boolean flag returns nothing
native GetItemBaseIsUsableById takes integer itemId returns boolean
native SetItemBaseIsUsableById takes integer itemId, boolean flag returns nothing
native GetItemBaseIsPerishableById takes integer itemId returns boolean
native SetItemBaseIsPerishableById takes integer itemId, boolean flag returns nothing
native GetItemBaseIsDroppableById takes integer itemId returns boolean
native SetItemBaseIsDroppableById takes integer itemId, boolean flag returns nothing
native GetItemBaseIsDroppableOnDeathById takes integer itemId returns boolean
native SetItemBaseIsDroppableOnDeathById takes integer itemId, boolean flag returns nothing
native GetItemBaseIsSellableById takes integer itemId returns boolean
native SetItemBaseIsSellableById takes integer itemId, boolean flag returns nothing
Unit API
native GetUnitBasePrimaryStatById takes integer unitTypeId returns heroattribute
native SetUnitBasePrimaryStatById takes integer unitTypeId, heroattribute whichHeroAttribute returns nothing
native GetUnitBaseGoldCostById takes integer unitTypeId returns integer
native SetUnitBaseGoldCostById takes integer unitTypeId, integer goldCost returns nothing
native GetUnitBaseDaySightById takes integer unitTypeId returns real
native SetUnitBaseDaySightById takes integer unitTypeId, real daySight returns nothing
native GetUnitBaseNightSightById takes integer unitTypeId returns real
native SetUnitBaseNightSightById takes integer unitTypeId, real nightSight returns nothing
native GetUnitBaseColourById takes integer unitTypeId returns integer
native SetUnitBaseColourById takes integer unitTypeId, integer colour returns nothing
native GetUnitBaseColourAById takes integer unitTypeId returns integer
native SetUnitBaseColourAById takes integer unitTypeId, integer colourA returns nothing
native GetUnitBaseColourRById takes integer unitTypeId returns integer
native SetUnitBaseColourRById takes integer unitTypeId, integer colourR returns nothing
native GetUnitBaseColourGById takes integer unitTypeId returns integer
native SetUnitBaseColourGById takes integer unitTypeId, integer colourG returns nothing
native GetUnitBaseColourBById takes integer unitTypeId returns integer
native SetUnitBaseColourBById takes integer unitTypeId, integer colourB returns nothing
native GetUnitBaseNameById takes integer unitTypeId returns string
native SetUnitBaseNameById takes integer unitTypeId, string name returns nothing
native GetUnitBaseProperNameById takes integer unitTypeId, integer properNameIndex returns string
native SetUnitBaseProperNameById takes integer unitTypeId, integer properNameIndex, string properName returns nothing
native GetUnitBaseDescriptionById takes integer unitTypeId returns string
native SetUnitBaseDescriptionById takes integer unitTypeId, string name returns nothing
native GetUnitBaseModelById takes integer unitTypeId returns string
native SetUnitBaseModelById takes integer unitTypeId, string modelName returns nothing
native GetUnitBasePortraitById takes integer unitTypeId returns string
native SetUnitBasePortraitById takes integer unitTypeId, string portraitName returns nothing
native GetUnitBaseHotkeyById takes integer unitTypeId returns oskeytype
native SetUnitBaseHotkeyById takes integer unitTypeId, oskeytype whichKey returns nothing
native GetUnitBaseIconById takes integer unitTypeId returns string
native SetUnitBaseIconById takes integer unitTypeId, string name returns nothing
native GetUnitBaseAwakenTipById takes integer unitTypeId returns string
native SetUnitBaseAwakenTipById takes integer unitTypeId, string awakenTip returns nothing
native GetUnitBaseTipById takes integer unitTypeId returns string
native SetUnitBaseTipById takes integer unitTypeId, string tip returns nothing
native GetUnitBaseUberTipById takes integer unitTypeId returns string
native SetUnitBaseUberTipById takes integer unitTypeId, string uberTip returns nothing
native GetUnitBaseReviveTipById takes integer unitTypeId returns string
native SetUnitBaseReviveTipById takes integer unitTypeId, string reviveTip returns nothing
native GetUnitBaseShadowTexById takes integer unitTypeId returns string
native SetUnitBaseShadowTexById takes integer unitTypeId, string shadowTexture returns nothing
native GetUnitBaseMissileArtById takes integer unitTypeId, integer attackIndex returns string
native SetUnitBaseMissileArtById takes integer unitTypeId, integer attackIndex, string missleArt returns nothing
native GetUnitBaseMissileSpeedById takes integer unitTypeId, integer attackIndex returns real
native SetUnitBaseMissileSpeedById takes integer unitTypeId, integer attackIndex, real realValue returns nothing
native GetUnitBaseMissileArcById takes integer unitTypeId, integer attackIndex returns real
native SetUnitBaseMissileArcById takes integer unitTypeId, integer attackIndex, real realValue returns nothing
native GetUnitBaseSelectionScaleById takes integer unitTypeId returns real
native SetUnitBaseSelectionScaleById takes integer unitTypeId, real realValue returns nothing
  1. Все SetAbilityField теперь по-настоящему следуют логике инстансирования, что значит, что изменение любых данных, включая UI будут уникальны для этого заклинания, а не изменны для всх.
  2. Прошлая функция SetImageOrigin изменена на SetImageOriginEx.
  3. Исправлена не совсем рабочая нативная функция EXSetAbilityState.
  4. Исправлено сломанное отключение для переключаемых заклинаний.
    Пометка: эта проблема всё так же была связана с новым экспериментальным методом SetAbilityOrderId... :(
  5. Добавлена внутренняя обработка полей:
ABILITY_SLF_CASTER
ABILITY_SLF_TARGET
ABILITY_SLF_SPECIAL
ABILITY_SLF_EFFECT
ABILITY_SLF_AREA_EFFECT
ABILITY_SLF_LIGHTNING_EFFECTS
ABILITY_SLF_MISSILE_ART
ABILITY_SLF_TOOLTIP_LEARN
ABILITY_SLF_TOOLTIP_LEARN_EXTENDED
ABILITY_SLF_TOOLTIP_NORMAL
ABILITY_SLF_TOOLTIP_TURN_OFF
ABILITY_SLF_TOOLTIP_NORMAL_EXTENDED
ABILITY_SLF_TOOLTIP_TURN_OFF_EXTENDED
  1. Изменены нативные функции юнитов:
Удалены:
SetUnitAttackState
UnitCancelCurrentAttackByIndex
Изменены:
GetUnitNextAttackTimeStampByIndex -> GetUnitAttackRemainingCooldown | Now it returns actual remaining time.
SetUnitNextAttackTimeStampByIndex -> SetUnitAttackRemainingCooldown | Now it sets actual remaining time.
UnitResetAttackCooldownByIndex -> UnitResetAttack
UnitAddExtraAttackByIndex -> UnitFinishAttack
Добавлены:
native GetUnitAttackRemainingDamagePoint takes unit whichUnit returns real
native SetUnitAttackRemainingDamagePoint takes unit whichUnit real time returns nothing
native GetUnitAttackRemainingBackswing takes unit whichUnit returns real
native SetUnitAttackRemainingBackswing takes unit whichUnit real time returns nothing
  1. Добавлен новый "Dev Mode" режим для UjAPI.
    Пометка: включение этого режима, даст UjAPI возможность выписывать в консоль всевозможные Jass ошибки (если карта имеет синтаксические ошибки в Jass) или же ошибки с файлами.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.16.69

  1. Изменения Типов:
subanimtype теперь расширяет animtype, чтобы иметь доступ к новой нативной функции GetAnimationName для получения имени анимации по её индексу.
  1. Новые Константы:
constant itemstringfield ITEM_SF_ABILITY_LIST = ConvertItemStringField('iabi')
constant itemstringfield ITEM_SF_ICON = ConvertItemStringField('iico')
constant unitstringfield UNIT_SF_ICON_NORMAL = ConvertUnitStringField('uico')
constant unitstringfield UNIT_SF_ICON_SCORE_SCREEN = ConvertUnitStringField('ussi')
constant unitstringfield UNIT_SF_MODEL = ConvertUnitStringField('umdl')
constant unitstringfield UNIT_SF_PORTRAIT = ConvertUnitStringField('upor')
constant unitstringfield UNIT_SF_SPECIAL = ConvertUnitStringField('uspa')
constant unitstringfield UNIT_SF_TOOLTIP_AWAKEN = ConvertUnitStringField('uawt')
constant unitstringfield UNIT_SF_TOOLTIP_REVIVE = ConvertUnitStringField('utpr')
  1. Новые Нативные Функции:
native HandleToHandle takes handle h returns handle
native SaveHandle takes hashtable table, integer parentKey, integer childKey, handle whichHandle returns boolean
native SaveAttackTypeHandle takes hashtable table, integer parentKey, integer childKey, attacktype whichAttackType returns boolean
native SaveDamageTypeHandle takes hashtable table, integer parentKey, integer childKey, damagetype whichDamageType returns boolean
native SaveWeaponTypeHandle takes hashtable table, integer parentKey, integer childKey, weapontype whichWeaponType returns boolean
native LoadHandle takes hashtable table, integer parentKey, integer childKey returns handle
native LoadAttackTypeHandle takes hashtable table, integer parentKey, integer childKey returns attacktype
native LoadDamageTypeHandle takes hashtable table, integer parentKey, integer childKey returns damagetype
native LoadWeaponTypeHandle takes hashtable table, integer parentKey, integer childKey returns weapontype
native GetAnimationName takes animtype whichAnim returns string
native QueueImmediateOrderById takes unit whichUnit, integer order returns boolean
native QueuePointOrderById takes unit whichUnit, integer order, real x, real y returns boolean
native QueueTargetOrderById takes unit whichUnit, integer order, widget targetWidget returns boolean
native QueueInstantPointOrderById takes unit whichUnit, integer order, real x, real y, widget instantTargetWidget returns boolean
native QueueInstantTargetOrderById takes unit whichUnit, integer order, widget targetWidget, widget instantTargetWidget returns boolean
native QueueBuildOrderById takes unit whichPeon, integer unitId, real x, real y returns boolean
native QueueNeutralImmediateOrderById takes player forWhichPlayer, unit neutralStructure, integer unitId returns boolean
native QueueNeutralPointOrderById takes player forWhichPlayer, unit neutralStructure, integer unitId, real x, real y returns boolean
native QueueNeutralTargetOrderById takes player forWhichPlayer, unit neutralStructure, integer unitId, widget target returns boolean
native GetUnitOrderCount takes unit whichUnit returns integer
native GetUnitOrderIdByIndex takes unit whichUnit, integer index returns integer
native UnitClearOrders takes unit whichUnit, boolean onlyQueued returns nothing
native UnitForceStopOrder takes unit whichUnit, boolean clearQueue returns nothing
  1. Исправлена ошибка JASS парсера, которая не отображала правильный текст ошибки.
  2. Исправлена ошибка случайно сломанной поддержки патча 1.27а.
  3. Переделана в очередной раз система обработки получения урона, которая ломалась при использовании CastTargetAbility внутри DAMAGING события.
  4. Переделан движок фреймов, который был случайно сломан в одном из предидущих обновлений.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.17.73

  1. Новые Типы:
    type minimapicon extends handle
    type commandbuttoneffect extends handle
  2. Новые Константы:
    constant unitrealfield UNIT_RF_COLLISION_SIZE = ConvertUnitRealField('ucol')
    constant originframetype ORIGIN_FRAME_CONSOLE_UI = ConvertOriginFrameType(18)
    constant originframetype ORIGIN_FRAME_PORTRAIT_TEXT = ConvertOriginFrameType(19)
    constant originframetype ORIGIN_FRAME_BUFF_BAR = ConvertOriginFrameType(20)
    constant originframetype ORIGIN_FRAME_BUFF_BAR_TEXT = ConvertOriginFrameType(21)
    constant originframetype ORIGIN_FRAME_BUFF_BAR_INDICATOR = ConvertOriginFrameType(22)
    constant originframetype ORIGIN_FRAME_TIME_OF_DAY_INDICATOR = ConvertOriginFrameType(23)
    constant originframetype ORIGIN_FRAME_LEADERBOARD = ConvertOriginFrameType(24)
    constant originframetype ORIGIN_FRAME_MULTIBOARD = ConvertOriginFrameType(25)
    constant originframetype ORIGIN_FRAME_INFO_BAR = ConvertOriginFrameType(26)
    constant originframetype ORIGIN_FRAME_COMMAND_BAR = ConvertOriginFrameType(27)
    constant originframetype ORIGIN_FRAME_RESOURCE_BAR = ConvertOriginFrameType(28)
    constant originframetype ORIGIN_FRAME_RESOURCE_BAR_TEXTURE = ConvertOriginFrameType(29)
    constant originframetype ORIGIN_FRAME_RESOURCE_BAR_TEXT = ConvertOriginFrameType(30)
    constant originframetype ORIGIN_FRAME_UPPERBUTTON_BAR = ConvertOriginFrameType(31)
    constant originframetype ORIGIN_FRAME_UPPERBUTTON_BAR_BUTTON = ConvertOriginFrameType(32)
    constant originframetype ORIGIN_FRAME_PEON_BAR = ConvertOriginFrameType(33)
    constant originframetype ORIGIN_FRAME_PLAYER_MESSAGE = ConvertOriginFrameType(34)
    constant originframetype ORIGIN_FRAME_UNIT_MESSAGE = ConvertOriginFrameType(35)
    constant originframetype ORIGIN_FRAME_CHAT_MESSAGE = ConvertOriginFrameType(36)
    constant originframetype ORIGIN_FRAME_TOP_MESSAGE = ConvertOriginFrameType(37)
    constant originframetype ORIGIN_FRAME_CHAT_EDITBAR = ConvertOriginFrameType(38)
    constant originframetype ORIGIN_FRAME_CINEMATIC_PANEL = ConvertOriginFrameType(39)
    constant originframetype ORIGIN_FRAME_COMMAND_BUTTON_COOLDOWN_INDICATOR = ConvertOriginFrameType(40)
    constant originframetype ORIGIN_FRAME_COMMAND_BUTTON_AUTOCAST_FRAME = ConvertOriginFrameType(41)
    constant originframetype ORIGIN_FRAME_COMMAND_BUTTON_CHARGES_FRAME = ConvertOriginFrameType(42)
    constant originframetype ORIGIN_FRAME_COMMAND_BUTTON_CHARGES_TEXT = ConvertOriginFrameType(43)
  3. Новые Нативные Функции:
    native MathRealMin takes real a, real b returns real
    native MathRealMax takes real a, real b returns real
    native MathRealSign takes real r returns integer
    native MathIntegerMin takes integer a, integer b returns integer
    native MathIntegerMax takes integer a, integer b returns integer
    native MathIntegerSign takes integer i returns integer
    native MathPointProjectionX takes real x, real angle, real distance returns real
    native MathPointProjectionY takes real y, real angle, real distance returns real
    native MathAngleBetweenPoints takes real fromX, real fromY, real toX, real toY returns real
    native MathDistanceBetweenPoints takes real fromX, real fromY, real toX, real toY returns real
    native MathAngleBetweenLocations takes location fromLoc, location toLoc returns real
    native MathDistanceBetweenLocations takes location fromLoc, location toLoc returns real
    native GetUnitZ takes unit whichUnit returns real
    native DisableUnitAbility takes unit whichUnit, integer abilityId, boolean hide, boolean disable returns nothing
    native EnableUnitAbility takes unit whichUnit, integer abilityId, boolean show, boolean enable returns nothing
    native GetUnitBuffByIndex takes unit whichUnit, integer index returns buff
    native SetSpecialEffectMatrixScale takes effect whichEffect, real x, real y, real z returns nothing\
    native SetMiniMapTexture takes string texturePath returns boolean
    native IsFrameRegion takes framehandle whichFrame returns boolean
    native IsFrameSimple takes framehandle whichFrame returns boolean
    native IsFrameComplex takes framehandle whichFrame returns boolean
  4. Добавлена упущенная константа UNIT_IF_LUMBER_COST.
  5. Добавлена упущенная константа UNIT_IF_HOTKEY.
  6. Добавлена упущенная константа UNIT_WEAPON_IF_ATTACK_WEAPON_TYPE.
  7. Исправлена критическая ошибка в нативных функциях полей при использовании UNIT_WEAPON_RF_ATTACK_PROJECTILE_ARC или UNIT_WEAPON_RF_ATTACK_PROJECTILE_SPEED на юните ближнего боя.
  8. Исправлено неправильное значение в константе UNIT_WEAPON_SF_ATTACK_PROJECTILE_ART.
  9. GetMouseScreenX и GetMouseScreenY теперь возвращают значения от .0 до 1. заместо .0 до .8 для X и .0 до .6 для Y.
  10. HideOriginFrames теперь ведёт себя почти идентично функции на Рефордже.
  11. UnitUnapplyUpdates и UnitApplyUpdates, слова Updates изменены на Upgrades, это была большая опечатка.
  12. Silence/UnsilenceAbility переименованы в Disable/EnableAbility.
  13. ITEM_IF_TINTING_COLOR значение изменено с icol на iclt.
  14. UNIT_IF_TINTING_COLOR значение изменено с ucol на uclt.
  15. Добавлены Blz нативные функции, часть из них - простые пустышки, но большая часть рабочая. Список рабочих/не пустышек функций:
    BlzGroupAddGroupFast
    BlzGroupRemoveGroupFast
    BlzGroupGetSize
    BlzGroupUnitAt
    BlzForceHasPlayer
    BlzGetTriggerPlayerMouseX
    BlzGetTriggerPlayerMouseY
    BlzGetTriggerPlayerMousePosition
    BlzGetTriggerPlayerMouseButton
    BlzSetAbilityTooltip
    BlzSetAbilityActivatedTooltip
    BlzSetAbilityExtendedTooltip
    BlzSetAbilityActivatedExtendedTooltip
    BlzSetAbilityResearchTooltip
    BlzSetAbilityResearchExtendedTooltip
    BlzGetAbilityTooltip
    BlzGetAbilityActivatedTooltip
    BlzGetAbilityExtendedTooltip
    BlzGetAbilityActivatedExtendedTooltip
    BlzGetAbilityResearchTooltip
    BlzGetAbilityResearchExtendedTooltip
    BlzSetAbilityIcon
    BlzGetAbilityIcon
    BlzSetAbilityActivatedIcon
    BlzGetAbilityActivatedIcon
    BlzGetAbilityPosX
    BlzGetAbilityPosY
    BlzSetAbilityPosX
    BlzSetAbilityPosY
    BlzGetAbilityActivatedPosX
    BlzGetAbilityActivatedPosY
    BlzSetAbilityActivatedPosX
    BlzSetAbilityActivatedPosY
    BlzGetUnitMaxHP
    BlzSetUnitMaxHP
    BlzGetUnitMaxMana
    BlzSetUnitMaxMana
    BlzSetItemName
    BlzSetItemDescription
    BlzGetItemDescription
    BlzSetItemTooltip
    BlzGetItemTooltip
    BlzSetItemExtendedTooltip
    BlzGetItemExtendedTooltip
    BlzSetItemIconPath
    BlzGetItemIconPath
    BlzSetUnitName
    BlzSetHeroProperName
    BlzGetUnitBaseDamage
    BlzSetUnitBaseDamage
    BlzGetUnitDiceNumber
    BlzSetUnitDiceNumber
    BlzGetUnitDiceSides
    BlzSetUnitDiceSides
    BlzGetUnitAttackCooldown
    BlzSetUnitAttackCooldown
    BlzSetSpecialEffectColorByPlayer
    BlzSetSpecialEffectColor
    BlzSetSpecialEffectAlpha
    BlzSetSpecialEffectScale
    BlzSetSpecialEffectPosition
    BlzSetSpecialEffectHeight
    BlzSetSpecialEffectTimeScale
    BlzSetSpecialEffectTime
    BlzSetSpecialEffectOrientation
    BlzSetSpecialEffectYaw
    BlzSetSpecialEffectPitch
    BlzSetSpecialEffectRoll
    BlzSetSpecialEffectX
    BlzSetSpecialEffectY
    BlzSetSpecialEffectZ
    BlzSetSpecialEffectPositionLoc
    BlzGetLocalSpecialEffectX
    BlzGetLocalSpecialEffectY
    BlzGetLocalSpecialEffectZ
    BlzPlaySpecialEffect
    BlzPlaySpecialEffectWithTimeScale
    BlzGetAnimName
    BlzGetUnitArmor
    BlzSetUnitArmor
    BlzUnitHideAbility
    BlzUnitDisableAbility
    BlzIsUnitSelectable
    BlzIsUnitInvulnerable
    BlzUnitInterruptAttack
    BlzGetUnitCollisionSize
    BlzGetAbilityManaCost
    BlzGetAbilityCooldown
    BlzSetUnitAbilityCooldown
    BlzGetUnitAbilityCooldown
    BlzGetUnitAbilityCooldownRemaining
    BlzEndUnitAbilityCooldown
    BlzStartUnitAbilityCooldown
    BlzGetUnitAbilityManaCost
    BlzSetUnitAbilityManaCost
    BlzGetLocalUnitZ
    BlzSetEventDamage
    BlzGetEventDamageTarget
    BlzGetEventAttackType
    BlzGetEventDamageType
    BlzGetEventWeaponType
    BlzSetEventAttackType
    BlzSetEventDamageType
    BlzSetEventWeaponType
    BlzGetEventIsAttack
    BlzGetUnitZ
    BlzGetOriginFrame
    BlzHideOriginFrames
    BlzConvertColor
    BlzLoadTOCFile
    BlzCreateFrame
    BlzCreateSimpleFrame
    BlzCreateFrameByType
    BlzDestroyFrame
    BlzFrameSetPoint
    BlzFrameSetAbsPoint
    BlzFrameClearAllPoints
    BlzFrameSetAllPoints
    BlzFrameSetVisible
    BlzFrameIsVisible
    BlzGetFrameByName
    BlzFrameGetName
    BlzFrameClick
    BlzFrameSetText
    BlzFrameGetText
    BlzFrameAddText
    BlzFrameSetTextSizeLimit
    BlzFrameGetTextSizeLimit
    BlzFrameSetTextColor
    BlzFrameSetFocus
    BlzFrameSetModel
    BlzFrameSetEnable
    BlzFrameGetEnable
    BlzFrameSetAlpha
    BlzFrameGetAlpha
    BlzFrameSetSpriteAnimate
    BlzFrameSetTexture
    BlzFrameSetScale
    BlzFrameSetTooltip
    BlzFrameCageMouse
    BlzFrameSetValue
    BlzFrameGetValue
    BlzFrameSetMinMaxValue
    BlzFrameSetStepSize
    BlzFrameSetSize
    BlzFrameSetVertexColor
    BlzFrameSetLevel
    BlzFrameSetParent
    BlzFrameGetParent
    BlzFrameGetHeight
    BlzFrameGetWidth
    BlzFrameSetFont
    BlzFrameSetTextAlignment
    BlzFrameGetChildrenCount
    BlzFrameGetChild
    BlzTriggerRegisterFrameEvent
    BlzGetTriggerFrame
    BlzGetTriggerFrameEvent
    BlzGetTriggerFrameValue
    BlzGetTriggerFrameText
    BlzTriggerRegisterPlayerSyncEvent
    BlzSendSyncData
    BlzGetTriggerSyncPrefix
    BlzGetTriggerSyncData
    BlzTriggerRegisterPlayerKeyEvent
    BlzGetTriggerPlayerKey
    BlzGetTriggerPlayerMetaKey
    BlzGetTriggerPlayerIsKeyDown
    BlzSetMousePos
    BlzGetLocalClientWidth
    BlzGetLocalClientHeight
    BlzIsLocalClientActive
    BlzGetMouseFocusUnit
    BlzChangeMinimapTerrainTex
    BlzGetSpecialEffectScale
    BlzSetSpecialEffectMatrixScale
    BlzResetSpecialEffectMatrix
    BlzGetUnitAbility
    BlzGetUnitAbilityByIndex
    BlzGetAbilityId
    BlzDisplayChatMessage
    BlzPauseUnitEx
    BlzFourCC2S
    BlzS2FourCC
    BlzSetUnitFacingEx
    BlzBitOr
    BlzBitAnd
    BlzBitXor
    BlzGetAbilityBooleanField
    BlzGetAbilityIntegerField
    BlzGetAbilityRealField
    BlzGetAbilityStringField
    BlzGetAbilityBooleanLevelField
    BlzGetAbilityIntegerLevelField
    BlzGetAbilityRealLevelField
    BlzGetAbilityStringLevelField
    BlzGetAbilityBooleanLevelArrayField
    BlzGetAbilityIntegerLevelArrayField
    BlzGetAbilityRealLevelArrayField
    BlzGetAbilityStringLevelArrayField
    BlzSetAbilityBooleanField
    BlzSetAbilityIntegerField
    BlzSetAbilityRealField
    BlzSetAbilityStringField
    BlzSetAbilityBooleanLevelField
    BlzSetAbilityIntegerLevelField
    BlzSetAbilityRealLevelField
    BlzSetAbilityStringLevelField
    BlzSetAbilityBooleanLevelArrayField
    BlzSetAbilityIntegerLevelArrayField
    BlzSetAbilityRealLevelArrayField
    BlzSetAbilityStringLevelArrayField
    BlzAddAbilityBooleanLevelArrayField
    BlzAddAbilityIntegerLevelArrayField
    BlzAddAbilityRealLevelArrayField
    BlzAddAbilityStringLevelArrayField
    BlzRemoveAbilityBooleanLevelArrayField
    BlzRemoveAbilityIntegerLevelArrayField
    BlzRemoveAbilityRealLevelArrayField
    BlzRemoveAbilityStringLevelArrayField
    BlzGetItemBooleanField
    BlzGetItemIntegerField
    BlzGetItemRealField
    BlzGetItemStringField
    BlzSetItemBooleanField
    BlzSetItemIntegerField
    BlzSetItemRealField
    BlzSetItemStringField
    BlzGetUnitBooleanField
    BlzGetUnitIntegerField
    BlzGetUnitRealField
    BlzGetUnitStringField
    BlzSetUnitBooleanField
    BlzSetUnitIntegerField
    BlzSetUnitRealField
    BlzSetUnitStringField
    BlzGetUnitWeaponBooleanField
    BlzGetUnitWeaponIntegerField
    BlzGetUnitWeaponRealField
    BlzGetUnitWeaponStringField
    BlzSetUnitWeaponBooleanField
    BlzSetUnitWeaponIntegerField
    BlzSetUnitWeaponRealField
    BlzSetUnitWeaponStringField
    BlzQueueImmediateOrderById
    BlzQueuePointOrderById
    BlzQueueTargetOrderById
    BlzQueueInstantPointOrderById
    BlzQueueInstantTargetOrderById
    BlzQueueBuildOrderById
    BlzQueueNeutralImmediateOrderById
    BlzQueueNeutralPointOrderById
    BlzQueueNeutralTargetOrderById
    BlzGetUnitOrderCount
    BlzUnitClearOrders
    BlzUnitForceStopOrder
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.18.74

  1. Новые Константы:
constant originframetype ORIGIN_FRAME_CURSOR_FRAME = ConvertOriginFrameType(44)
  1. Новые Нативные Функции:
native BitwiseGetBit takes integer number, integer bitIndex returns integer
native BitwiseGetByte takes integer number, integer byteIndex returns integer
native StringCount takes string s, string whichString, boolean caseSensitive returns integer
native StringTrimLeft takes string s, boolean caseSensitive returns string
native StringTrimRight takes string s, boolean caseSensitive returns string
native StringTrim takes string s, boolean caseSensitive returns string
native StringReverse takes string s, boolean caseSensitive returns string
native StringReplace takes string s, string whichString, string replaceWith, boolean caseSensitive returns string
native StringInsert takes string s, string whichString, integer whichPosition, boolean caseSensitive returns string
native GetTriggerSyncPlayer takes nothing returns player this is simply mimicking GetTriggerPlayer, added for simplicity.
native IsTextTagVisible takes texttag whichTextTag returns boolean
native IsTextTagSuspended takes texttag whichTextTag returns boolean
native IsTextTagPermanent takes texttag whichTextTag returns real
native GetTextTagX takes texttag whichTextTag returns real
native SetTextTagX takes texttag whichTextTag, real x returns nothing
native GetTextTagY takes texttag whichTextTag returns real
native SetTextTagY takes texttag whichTextTag, real y returns nothing
native GetTextTagZ takes texttag whichTextTag returns real
native SetTextTagZ takes texttag whichTextTag, real z returns nothing
native GetTextTagHeight takes texttag whichTextTag returns real
native SetTextTagHeight takes texttag whichTextTag, real height returns nothing
native GetTextTagLocation takes texttag whichTextTag returns location
native SetTextTagPositionLocation takes texttag whichTextTag, location whichLocation returns nothing
native GetTextTagColour takes texttag whichTextTag returns integer
native GetTextTagAlpha takes texttag whichTextTag returns integer
native SetTextTagAlpha takes texttag whichTextTag, integer alpha returns nothing
native GetTextTagVelocityX takes texttag whichTextTag returns real
native SetTextTagVelocityX takes texttag whichTextTag, real velX returns nothing
native GetTextTagVelocityY takes texttag whichTextTag returns real
native SetTextTagVelocityY takes texttag whichTextTag, real velY returns nothing
native GetTextTagVelocityZ takes texttag whichTextTag returns real
native SetTextTagVelocityZ takes texttag whichTextTag, real velZ returns nothing
native GetTextTagAge takes texttag whichTextTag returns real
native GetTextTagLifespan takes texttag whichTextTag returns real
native GetTextTagFadepoint takes texttag whichTextTag returns real
native GetTextTagShadowColour takes texttag whichTextTag returns integer
native SetTextTagShadowColour takes texttag whichTextTag, integer colour returns nothing
native GetTextTagShadowAlpha takes texttag whichTextTag returns integer
native SetTextTagShadowAlpha takes texttag whichTextTag, integer alpha returns nothing
native GetTextTagText takes texttag whichTextTag returns string
  1. Добавлены недостающие константы из предыдущей версии.
  2. Версия UjAPI теперь прописывается в главном меню Warcraft.
  3. Добавлена опция "Load Library" в главную секцию. Это включает/выключает подгрузку UjAPI.mpq и нативных функций.
Пометка: эта опция по стандарту включена и смена этой опции на уже запущенном Warctaft не будет работать.
  1. Добавлена опция "Load Library" для секции LUA. Это включает/выключает подгрузку библиотеки war3_lua.dll.
Пометка: эта опция по стандарту выключена и смена этой опции на уже запущенном Warctaft не будет работать.
  1. Добавлена "CLI" обработка в UjAPI, теперь каждый последующий запуск приложения UjAPI будет просто на просто отправлять аргументы запуска в уже запущенное приложение.
Пример 1: "D:\Files\Work Files\Programming\uJAPI\Release\UjAPILauncher.exe" -ujapi "dev" -lua "dev console nowarnings" -multiwindow -window -loadfile "Maps\Test\WorldEditTestMap.w3x"
Пометка 1: Это выполнит UjAPI и включит его режим разработчика, а так же включит луа с заданными к ней параметрами, игра будет в мультиоконном режиме и в режиме окна. Затем будет запущена карта заданная в loadfile аргументе.
Пример 2 (полный): "D:\Files\Work Files\Programming\uJAPI\Release\UjAPILauncher.exe" -ujapi "dev" -lua "dev console nowarnings" -multiwindow -window -launch "Warcraft" -gamepath "D:\Games\Warcraft III TFT\war3.exe" -loadfile "Maps\Test\WorldEditTestMap.w3x"
Пометка 2: Это выполнит всё, что описано в Примере 1, однако если присутствуют (-gamepath или -editorpath) оно также "переопределит" путь игры/редактора основываясь на аргументах поданных в них.
  1. CLI команды:
Пометка: пояснения команд будут в скобочках, вот так - (информация).
-justdoupdate (просто на просто выполнит форсированное скачивание последней версии и выполнит автообновление UjAPI, остальные команды будут проигнорированы).
-ujapi (даёт возможность переопределения некоторых базовых настроек UjAPI, пример: -ujapi "dev"), "" (кавычки) обязательны!
noload (отключает подгрузку UjAPI.mpq и UjAPI нативных функций).
dev (включает режим разработчика, который также включит консоль).
-lua (даёт возможность переопределения некоторых базовых настроек war3_lua.dll, пример: -lua "dev console nowarnings"), "" (кавычки) обязательны!
dev (включает режим разработчика).
console (включает консоль для луа ошибок и так далее).
nowarnings (отключает некоторые внутренние ошибки типов).
-multiwindow (включает режим Multi-Window и загружает необходимый модуль).
-window (запустит приложение в оконном режиме).
-launch (даёт возможность переопределения/указания пути для запуска игры или редактора, по стандарту будет запускаться игра, пример: -launch "Editor"), "" (кавычки) обязательны!
-gamepath (переопределяет и использует путь игры заданный в UjAPI Launcher, пример: -gamepath "D:\Games\Warcraft III TFT\war3.exe"), "" (кавычки) обязательны!
-editorpath (переопределяет и использует путь редактора заданный в UjAPI Launcher, пример: -editorpath "D:\Programs\WC3 Tools\JNPG-R1.4-Prometheus-Edition\NewGen WE.exe"), "" (кавычки) обязательны!
-loadfile (повторяет 1 в 1 метод запуска карт, путь до карты для игры ВСЕГДА относителен пути игры, однако для редактора нужно указывать ПОЛНЫЙ путь до карты).
  1. Добавлена -loadfile команда для секции World Editor, однако путь до карты НЕ относителен пути игры, нужно указывать полный путь до карты.
  2. Добавлена опция "Load Library" в секции World Editor.
  3. Добавлена опция "Dev Mode" в секции World Editor.
Пометка: #10 и #11 работают точно так же как такие же опции в Warcraft 3.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.18.75

  1. Исправлены проблемы с полноэкранным режимом запуска игры.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.19.78

  1. Новые Типы:
    type jassthread extends handle
  2. Новые Константы:
    constant widgetevent EVENT_WIDGET_DAMAGING = ConvertWidgetEvent(400)
    constant widgetevent EVENT_WIDGET_DAMAGED = ConvertWidgetEvent(401)
    constant abilityreallevelfield ABILITY_RLF_CAST_BACK_SWING = ConvertAbilityRealLevelField('acbs')
    constant abilityreallevelfield ABILITY_RLF_CAST_POINT = ConvertAbilityRealLevelField('acpt')
    constant unitintegerfield UNIT_IF_AGILITY_BONUS = ConvertUnitIntegerField('uag+') Get Only
    constant unitintegerfield UNIT_IF_INTELLIGENCE_BONUS = ConvertUnitIntegerField('uin+') Get Only
    constant unitintegerfield UNIT_IF_STRENGTH_BONUS = ConvertUnitIntegerField('ust+') Get Only
    constant unitrealfield UNIT_RF_HEALTH_FROM_BONUS_STRENGTH = ConvertUnitRealField('uhs+') Get Only
    constant unitrealfield UNIT_RF_MANA_FROM_BONUS_INTELLIGENCE = ConvertUnitRealField('umi+') Get Only
    constant unitrealfield UNIT_RF_DEFENSE_BONUS = ConvertUnitRealField('udf+') Get Only
    constant unitrealfield UNIT_RF_SPEED_BONUS = ConvertUnitRealField('umv+') Get Only
    constant unitweaponintegerfield UNIT_WEAPON_IF_ATTACK_DAMAGE_BONUS = ConvertUnitWeaponIntegerField('ud1+') Get Only | this is the + (Green) or - (Red) value next to attack.
    constant unitweaponrealfield UNIT_WEAPON_RF_ATTACK_SPEED_BONUS = ConvertUnitWeaponRealField('us1+') Get Only
  3. Новые Нативные Функции:
    Jass VM Natives
    native GetJassMainThread takes nothing returns jassthread
    native GetJassCurrentThread takes nothing returns jassthread
    native RunJassScriptEx takes string parentScriptFile, string helperScriptFile, string jassScriptFile returns jassthread
    native RunJassScript takes string helperScriptFile, string jassScriptFile returns jassthread
    native RunJassScriptSimple takes string jassScriptFile returns jassthread
    native StopJassThread takes jassthread thread returns boolean
    native GetJassGlobalInteger takes jassthread thread, string variableName returns integer
    native GetJassGlobalReal takes jassthread thread, string variableName returns real
    native GetJassGlobalString takes jassthread thread, string variableName returns string
    native GetJassGlobalHandle takes jassthread thread, string variableName returns handle
    native GetJassGlobalBoolean takes jassthread thread, string variableName returns boolean
    native SetJassGlobalInteger takes jassthread thread, string variableName, integer value returns boolean
    native SetJassGlobalReal takes jassthread thread, string variableName, real value returns boolean
    native SetJassGlobalString takes jassthread thread, string variableName, string value returns boolean
    native SetJassGlobalHandle takes jassthread thread, string variableName, handle value returns boolean
    native SetJassGlobalBoolean takes jassthread thread, string variableName, boolean value returns boolean

    native GetWidgetModel takes widget whichWidget returns string
    native TriggerRegisterWidgetEvent takes trigger whichTrigger, widget whichWidget, widgetevent whichWidgetEvent returns event
    native SetSpecialEffectPlayerColour takes effect whichEffect, playercolor color returns nothing
    native SetSpecialEffectMaterialTexture takes effect whichEffect, string textureName, integer materialId, integer textureIndex returns nothing
    native SetSpecialEffectTexture takes effect whichEffect, string textureName, integer textureIndex returns nothing
    native SetSpecialEffectReplaceableTexture takes effect whichEffect, string textureName, integer textureIndex returns nothing
    native SetTrackablePlayerColour takes trackable whichTrackable, playercolor color returns nothing
    native SetMissilePlayerColour takes missile whichMissile, playercolor color returns nothing
    native SetMissileMaterialTexture takes missile whichMissile, string textureName, integer materialId, integer textureIndex returns nothing
    native SetMissileTexture takes missile whichMissile, string textureName, integer textureIndex returns nothing
    native SetMissileReplaceableTexture takes missile whichMissile, string textureName, integer textureIndex returns nothing
    native SetFrameSpritePlayerColour takes framehandle whichFrame, playercolor color returns nothing
    native GetFrameSpriteAlpha takes framehandle whichFrame returns integer
    native SetFrameSpriteMaterialTexture takes framehandle whichFrame, string textureName, integer materialId, integer textureIndex returns nothing
    native SetFrameSpriteTexture takes framehandle whichFrame, string textureName, integer textureIndex returns nothing
    native SetFrameSpriteReplaceableTexture takes framehandle whichFrame, string textureName, integer textureIndex returns nothing
    native GetUnitInSelectionByIndex takes player whichPlayer, integer index returns unit
    native GetLastUnitInSelection takes player whichPlayer returns unit
  4. UNIT_IF_INTELLIGENCE теперь возвращает правильное значение.
  5. Добавлены эти поля во внутренний обработчик Get/SetUnitField:
    UNIT_IF_AGILITY_PERMANENT
    UNIT_IF_INTELLIGENCE_PERMANENT
    UNIT_IF_STRENGTH_PERMANENT
    UNIT_IF_AGILITY_WITH_BONUS
    UNIT_IF_INTELLIGENCE_WITH_BONUS
    UNIT_IF_STRENGTH_WITH_BONUS
  6. Добавлены эти поля во внутренний обработчик GetUnitField:
    UNIT_IF_AGILITY_BONUS
    UNIT_IF_INTELLIGENCE_BONUS
    UNIT_IF_STRENGTH_BONUS
    UNIT_RF_HEALTH_FROM_BONUS_STRENGTH
    UNIT_RF_MANA_FROM_BONUS_INTELLIGENCE
    UNIT_RF_DEFENSE_BONUS
    UNIT_RF_SPEED_BONUS
    UNIT_WEAPON_IF_ATTACK_DAMAGE_BONUS
    UNIT_WEAPON_RF_ATTACK_SPEED_BONUS
  7. Исправлено GetTriggerFrame возвращающее всегда null.
  8. BlzSetSpecialEffectColorByPlayer теперь закрашивает временные(командные) текстуры, как оно и должно было.
  9. Исправлена критическая ошибка со всеми BlzSetField.
  10. ABILITY_ILF_TARGET_TYPE добавлена во внутренний обработчик SetAbilityField.
  11. Исправлена критическая ошибка от ORIGIN_FRAME_BUFF_BAR_INDICATOR, добавлена проверка действительности, так как игра не создаёт сразу все индикаторы.
    Пояснение: игра по стандарту создаёт лишь 1 индикатор, затем, когда у игры нет "свободных" индикаторов, она создаёт ещё 1 вплоть до 7.
  12. Исправлены некоторые "опечатки" среди OSKEY_ переменных, причиной послужила моя мышка, которая устраивает дабл клик, потому при табуляциях, часть букв была удалена/заменена и так далее.
  13. Исправлено Missile API, оно "перестало работать" после поспешных исправлений/переделок.
  14. Исправлены BUFF_SF поля, теперь они возвращают реальное значение, а не "<null>".
  15. Добавлены эти поля Заклинаний во внутренний обработчик Get/SetAbilityField:
    ABILITY_RLF_CASTING_TIME
    ABILITY_RLF_CAST_BACK_SWING
    ABILITY_RLF_CAST_POINT.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.20.84

  1. UjAPI.exe более не "заставляет" последующие запуски UjAPI запускаться от админ прав, теперь последующие запуски будут просто посылать свои команды в главное приложение. Это должно упростить создание "макетов запуска".
  2. Missile API переделан в Projectile API.
  3. Удалённые нативные функции:
    native GetAbilityCooldownEx takes ability whichAbility returns real
    native TriggerRegisterPlayerProjectileEvent takes trigger whichTrigger, player whichPlayer, playermissileevent whichEvent returns event
    Пометка: события теперь регистрируются через определённых игроков/юнитов используя TriggerRegisterPlayerUnitEvent and TriggerRegisterUnitEvent.
  4. Новые типы:
    type doodad extends agent
  5. Новые конвертеры:
    constant native ConvertProjectileType takes integer i returns projectiletype
  6. Новыее константы:
    constant playerunitevent EVENT_PLAYER_UNIT_BUFF_RECEIVED = ConvertPlayerUnitEvent(500)
    constant playerunitevent EVENT_PLAYER_UNIT_BUFF_REFRESHED = ConvertPlayerUnitEvent(501)
    constant playerunitevent EVENT_PLAYER_UNIT_BUFF_ENDED = ConvertPlayerUnitEvent(502)
    constant playerunitevent EVENT_PLAYER_UNIT_PROJECTILE_LAUNCH = ConvertPlayerUnitEvent(600)
    constant playerunitevent EVENT_PLAYER_UNIT_PROJECTILE_HIT = ConvertPlayerUnitEvent(601)
    constant unitevent EVENT_UNIT_BUFF_RECEIVED = ConvertUnitEvent(510)
    constant unitevent EVENT_UNIT_BUFF_REFRESHED = ConvertUnitEvent(511)
    constant unitevent EVENT_UNIT_BUFF_ENDED = ConvertUnitEvent(512)
    constant unitevent EVENT_UNIT_PROJECTILE_LAUNCH = ConvertUnitEvent(610)
    constant unitevent EVENT_UNIT_PROJECTILE_HIT = ConvertUnitEvent(611)
    constant projectiletype PROJECTILE_TYPE_BULLET = ConvertProjectileType(0)
    constant projectiletype PROJECTILE_TYPE_MISSILE = ConvertProjectileType(1)
    constant projectiletype PROJECTILE_TYPE_ARTILLERY = ConvertProjectileType(2)
    constant projectiletype PROJECTILE_TYPE_VISIBLE = ConvertProjectileType(4)
    constant projectiletype PROJECTILE_TYPE_DEAD = ConvertProjectileType(5)
  7. Новые нативные функции:
    native IsProjectileType takes projectile whichProjectile, projectiletype whichType returns boolean
    native GetProjectileTargetPointX takes projectile whichProjectile returns real
    native GetProjectileTargetPointY takes projectile whichProjectile returns real
    native GetProjectileTargetPointZ takes projectile whichProjectile returns real
    native GetProjectileTargetPoint takes projectile whichProjectile returns location
    native GetProjectileAreaOfEffectFullDamage takes projectile whichProjectile returns real
    native SetProjectileAreaOfEffectFullDamage takes projectile whichProjectile, real area returns nothing
    native GetProjectileAreaOfEffectMediumDamage takes projectile whichProjectile returns real
    native SetProjectileAreaOfEffectMediumDamage takes projectile whichProjectile, real area returns nothing
    native GetProjectileAreaOfEffectSmallDamage takes projectile whichProjectile returns real
    native SetProjectileAreaOfEffectSmallDamage takes projectile whichProjectile, real area returns nothing
    native GetProjectileAreaOfEffectMediumDamageFactor takes projectile whichProjectile returns real
    native SetProjectileAreaOfEffectMediumDamageFactor takes projectile whichProjectile, real factor returns nothing
    native GetProjectileAreaOfEffectSmallDamageFactor takes projectile whichProjectile returns real
    native SetProjectileAreaOfEffectSmallDamageFactor takes projectile whichProjectile, real factor returns nothing
    native EnumProjectilesInRect takes rect whichRect, boolexpr filter, code handlerFunc returns nothing
    native GetUnitRallyPointX takes unit whichUnit returns real
    native GetUnitRallyPointY takes unit whichUnit returns real
    native SetUnitKiller takes unit whichUnit, unit killer returns nothing
    native KillUnitEx takes unit whichUnit, unit killer returns nothing
    native GetAbilityOwner takes ability whichAbility returns unit
    native GetFilterAbility takes nothing returns ability
    native GetEnumAbility takes nothing returns ability
    native EnumUnitAbilities takes unit whichUnit, boolexpr whichBoolexpr, code whichCode returns boolean
    native GetBuffTypeId takes buff whichBuff returns integer
    native GetBuffBaseTypeId takes buff whichBuff returns integer
    native GetBuffOwner takes buff whichbuff returns unit
    native SetBuffLevel takes buff whichBuff, integer level returns nothing
    native GetFilterBuff takes nothing returns buff
    native GetEnumBuff takes nothing returns buff
    native EnumUnitBuffs takes unit whichUnit, boolexpr whichBoolexpr, code whichCode returns boolean
    native GetTriggerBuff takes nothing returns buff
    native GetTriggerBuffSourceAbility takes nothing returns ability
    native GetTriggerBuffSourceUnit takes nothing returns unit
    native GetTriggerBuffTarget takes nothing returns unit
    Doodad API
    native GetDoodadCount takes nothing returns integer
    native GetDoodadByIndex takes integer index returns doodad
    native GetDoodadIndex takes doodad whichDoodad returns integer
    native SetDoodadAnimationWithRarityByIndex takes doodad whichDoodad, integer animIndex, raritycontrol rarity returns nothing
    native SetDoodadAnimationWithRarity takes doodad whichDoodad, string animationName, raritycontrol rarity returns nothing
    native SetDoodadAnimationByIndex takes doodad whichDoodad, integer animIndex returns nothing
    native SetDoodadAnimationEx takes doodad whichDoodad, string animationName returns nothing
    native QueueDoodadAnimationByIndex takes doodad whichDoodad, integer animIndex returns nothing
    native QueueDoodadAnimation takes doodad whichDoodad, string animationName returns nothing
    native SetDoodadAnimationOffsetPercent takes doodad whichDoodad, real percent returns nothing
    native GetFilterDoodad takes nothing returns doodad
    native GetEnumDoodad takes nothing returns doodad
    native EnumDoodadsInRange takes real x, real y, real radius, boolexpr filter, code handlerFunc returns nothing
    native EnumDoodadsInRangeEx takes real x, real y, real radius, integer typeId, boolean nearestOnly, boolexpr filter, code handlerFunc returns nothing
    native EnumDoodadsInRect takes rect whichRect, boolexpr filter, code handlerFunc returns nothing
    native EnumDoodadsInRectEx takes rect whichRect, integer typeId, boolean nearestOnly, boolexpr filter, code handlerFunc returns nothing
    Handle List API
    native HandleListCreate takes nothing returns handlelist
    native HandleListDestroy takes handlelist whichHandleList returns nothing
    native HandleListAddHandle takes handlelist whichHandleList, handle whichHandle returns nothing
    native HandleListRemoveHandle takes handlelist whichHandleList, handle whichHandle returns nothing
    native HandleListAddList takes handlelist destHandleList, handlelist sourceHandleList returns integer
    native HandleListRemoveList takes handlelist destHandleList, handlelist sourceHandleList returns integer
    native HandleListClear takes handlelist whichHandleList returns nothing
    native HandleListContainsHandle takes handlelist whichHandleList, handle whichHandle returns boolean
    native HandleListGetCount takes handlelist whichHandleList returns integer
    native HandleListGetCountEx takes handlelist whichHandleList, integer handleTypeId returns integer
    native HandleListGetAgentCount takes handlelist whichHandleList returns integer
    native HandleListGetWidgetCount takes handlelist whichHandleList returns integer
    native HandleListGetUnitCount takes handlelist whichHandleList returns integer
    native HandleListGetItemCount takes handlelist whichHandleList returns integer
    native HandleListGetDestructableCount takes handlelist whichHandleList returns integer
    native HandleListGetAbilityCount takes handlelist whichHandleList returns integer
    native HandleListGetBuffCount takes handlelist whichHandleList returns integer
    native HandleListGetEffectCount takes handlelist whichHandleList returns integer
    native HandleListGetMissileCount takes handlelist whichHandleList returns integer
    native HandleListGetFrameCount takes handlelist whichHandleList returns integer
    native HandleListGetHandleByIndex takes handlelist whichHandleList, integer index returns handle
    native HandleListGetHandleByIndexEx takes handlelist whichHandleList, integer handleTypeId, integer index returns handle
    native HandleListGetAgentByIndex takes handlelist whichHandleList, integer index returns agent
    native HandleListGetWidgetByIndex takes handlelist whichHandleList, integer index returns widget
    native HandleListGetUnitByIndex takes handlelist whichHandleList, integer index returns unit
    native HandleListGetItemByIndex takes handlelist whichHandleList, integer index returns item
    native HandleListGetDestructableByIndex takes handlelist whichHandleList, integer index returns destructable
    native HandleListGetAbilityByIndex takes handlelist whichHandleList, integer index returns ability
    native HandleListGetBuffByIndex takes handlelist whichHandleList, integer index returns buff
    native HandleListGetEffectByIndex takes handlelist whichHandleList, integer index returns effect
    native HandleListGetMissileByIndex takes handlelist whichHandleList, integer index returns missile
    native HandleListGetFrameByIndex takes handlelist whichHandleList, integer index returns framehandle
    native HandleListGetFilterHandle takes nothing returns handle
    native HandleListGetFilterAgent takes nothing returns agent
    native HandleListGetFilterWidget takes nothing returns widget
    native HandleListGetFilterUnit takes nothing returns unit
    native HandleListGetFilterItem takes nothing returns item
    native HandleListGetFilterDestructable takes nothing returns destructable
    native HandleListGetFilterAbility takes nothing returns ability
    native HandleListGetFilterBuff takes nothing returns buff
    native HandleListGetFilterEffect takes nothing returns effect
    native HandleListGetFilterMissile takes nothing returns missile
    native HandleListGetFilterFrame takes nothing returns framehandle
    native HandleListGetEnumHandle takes nothing returns handle
    native HandleListGetEnumAgent takes nothing returns agent
    native HandleListGetEnumWidget takes nothing returns widget
    native HandleListGetEnumUnit takes nothing returns unit
    native HandleListGetEnumItem takes nothing returns item
    native HandleListGetEnumDestructable takes nothing returns destructable
    native HandleListGetEnumAbility takes nothing returns ability
    native HandleListGetEnumBuff takes nothing returns buff
    native HandleListGetEnumEffect takes nothing returns effect
    native HandleListGetEnumMissile takes nothing returns missile
    native HandleListGetEnumFrame takes nothing returns framehandle
    native HandleListEnumInRange takes handlelist whichHandleList, real x, real y, real radius, boolexpr filter returns nothing
    native HandleListEnumInRangeEx takes handlelist whichHandleList, real x, real y, real radius, integer handleTypeId, boolexpr filter returns nothing
    native HandleListEnumAgentsInRange takes handlelist whichHandleList, real x, real y, real radius, boolexpr filter returns nothing
    native HandleListEnumWidgetsInRange takes handlelist whichHandleList, real x, real y, real radius, boolexpr filter returns nothing
    native HandleListEnumUnitsInRange takes handlelist whichHandleList, real x, real y, real radius, boolexpr filter returns nothing
    native HandleListEnumItemsInRange takes handlelist whichHandleList, real x, real y, real radius, boolexpr filter returns nothing
    native HandleListEnumDestructablesInRange takes handlelist whichHandleList, real x, real y, real radius, boolexpr filter returns nothing
    native HandleListEnumEffectsInRange takes handlelist whichHandleList, real x, real y, real radius, boolexpr filter returns nothing
    native HandleListEnumMissilesInRange takes handlelist whichHandleList, real x, real y, real radius, boolexpr filter returns nothing
    native HandleListEnumInRangeOfLoc takes handlelist whichHandleList, location whichLocation, real radius, boolexpr filter returns nothing
    native HandleListEnumInRangeOfLocEx takes handlelist whichHandleList, location whichLocation, real radius, integer handleTypeId, boolexpr filter returns nothing
    native HandleListEnumAgentsInRangeOfLoc takes handlelist whichHandleList, location whichLocation, real radius, boolexpr filter returns nothing
    native HandleListEnumWidgetsInRangeOfLoc takes handlelist whichHandleList, location whichLocation, real radius, boolexpr filter returns nothing
    native HandleListEnumUnitsInRangeOfLoc takes handlelist whichHandleList, location whichLocation, real radius, boolexpr filter returns nothing
    native HandleListEnumItemsInRangeOfLoc takes handlelist whichHandleList, location whichLocation, real radius, boolexpr filter returns nothing
    native HandleListEnumDestructablesInRangeOfLoc takes handlelist whichHandleList, location whichLocation, real radius, boolexpr filter returns nothing
    native HandleListEnumEffectsInRangeOfLoc takes handlelist whichHandleList, location whichLocation, real radius, boolexpr filter returns nothing
    native HandleListEnumMissilesInRangeOfLoc takes handlelist whichHandleList, location whichLocation, real radius, boolexpr filter returns nothing
    native HandleListEnumInRect takes handlelist whichHandleList, rect whichRect, boolexpr filter returns nothing
    native HandleListEnumInRectEx takes handlelist whichHandleList, rect whichRect, integer handleTypeId, boolexpr filter returns nothing
    native HandleListEnumAgentsInRect takes handlelist whichHandleList, rect whichRect, boolexpr filter returns nothing
    native HandleListEnumWidgetsInRect takes handlelist whichHandleList, rect whichRect, boolexpr filter returns nothing
    native HandleListEnumUnitsInRect takes handlelist whichHandleList, rect whichRect, boolexpr filter returns nothing
    native HandleListEnumItemsInRect takes handlelist whichHandleList, rect whichRect, boolexpr filter returns nothing
    native HandleListEnumDestructablesInRect takes handlelist whichHandleList, rect whichRect, boolexpr filter returns nothing
    native HandleListEnumEffectsInRect takes handlelist whichHandleList, rect whichRect, boolexpr filter returns nothing
    native HandleListEnumMissilesInRect takes handlelist whichHandleList, rect whichRect, boolexpr filter returns nothing
    native HandleListEnumByTypeId takes handlelist whichHandleList, integer typeId, boolexpr filter returns nothing
    native HandleListEnumByTypeIdEx takes handlelist whichHandleList, integer handleTypeId, integer typeId, boolexpr filter returns nothing
    native HandleListForEach takes handlelist whichHandleList, code c returns nothing
    native HandleListForEachByType takes handlelist whichHandleList, integer typeId, code c returns nothing
    native HandleListForEachByTypeEx takes handlelist whichHandleList, integer handleTypeId, integer typeId, code c returns nothing
  8. Исправлена опечатка (дополнительное слово "unit" в Get/SetUnitBaseMoveSpeed.
  9. Исправлена критическая ошибка от GetFrameText, если текст фрейма не был инициализирован.
  10. Исправлена критическая ошибка в SetUnitBonusMoveSpeedPercent.
  11. Исправлена критическая ошибка при запуске патча 1.27b.
  12. Исправлена критическая ошибка при смене "страниц" в главном меню на 1.28f.
  13. Добавлена экспериментальная поддержка карт, которые НЕ содержат W3MH (HM3W) заголовок, то бишь карты Рефоржа, у которых ТОЛЬКО MPQ заголовок, они должны теперь хотя бы отображаться в списке карт и их w3i файл должен считываться.
  14. Исправлены нативные функции SetAbilityField ломающие заклинания, максимальный уровень которых выше 4.
  15. Исправлена критическая ошибка при выходе с карты/игры после изменения заклинания типа "канал" ANcl через SetAbilityField и т.д.
  16. Исправлена некорректное изменение цвета виджетов в SetWidgetVertexColour.
  17. Добавлена "поддержка" новой нативной функции DzAPI_Map_GetPlayerUserName.
  18. Добавлена поддержка MMEngine, теперь вы можете запускать её через UjAPI.
Этот комментарий удален
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.21.85

  1. Новые Константы:
    constant targetflag TARGET_FLAG_SELF = ConvertTargetFlag(4096)
    constant targetflag TARGET_FLAG_PLAYER_UNITS = ConvertTargetFlag(8192)
    constant targetflag TARGET_FLAG_ALLIED = ConvertTargetFlag(16384)
    constant targetflag TARGET_FLAG_FRIEND = ConvertTargetFlag(24576) ALLIED | PLAYER_UNITS
    constant targetflag TARGET_FLAG_NEUTRAL = ConvertTargetFlag(32768)
    constant targetflag TARGET_FLAG_ENEMY = ConvertTargetFlag(65536)
    constant targetflag TARGET_FLAG_NOT_SELF = ConvertTargetFlag(122880) ENEMY | NEUTRAL | FRIEND
    constant targetflag TARGET_FLAG_VULNERABLE = ConvertTargetFlag(1048576)
    constant targetflag TARGET_FLAG_INVULNERABLE = ConvertTargetFlag(2097152)
    constant targetflag TARGET_FLAG_HERO = ConvertTargetFlag(4194304)
    constant targetflag TARGET_FLAG_NON_HERO = ConvertTargetFlag(8388608)
    constant targetflag TARGET_FLAG_ALIVE = ConvertTargetFlag(16777216)
    constant targetflag TARGET_FLAG_DEAD = ConvertTargetFlag(33554432)
    constant targetflag TARGET_FLAG_ORGANIC = ConvertTargetFlag(67108864)
    constant targetflag TARGET_FLAG_MECHANICAL = ConvertTargetFlag(134217728)
    constant targetflag TARGET_FLAG_NON_SUICIDAL = ConvertTargetFlag(268435456)
    constant targetflag TARGET_FLAG_SUICIDAL = ConvertTargetFlag(536870912)
    constant targetflag TARGET_FLAG_NON_ANCIENT = ConvertTargetFlag(1073741824)
    constant targetflag TARGET_FLAG_ANCIENT = ConvertTargetFlag(2147483648)
    constant targetflag TARGET_FLAG_EMPTY = ConvertTargetFlag(4294967295)

    constant abilityrealfield ABILITY_RF_AURA_REFRESH_TIME = ConvertAbilityRealField('artm')
    constant abilityintegerlevelfield ABILITY_ILF_TARGETS_ALLOWED = ConvertAbilityIntegerLevelField('atar')

    constant playerunitevent EVENT_PLAYER_UNIT_ATTACK_FINISHED = ConvertPlayerUnitEvent(317)
    constant unitevent EVENT_UNIT_ATTACK_FINISHED = ConvertUnitEvent(316)
  2. Новые Нативные Функции:
    native IsAbilityTargetAllowed takes ability whichAbility, widget whichWidget returns boolean
    native GetSpecialEffectModelObjectPositionX takes effect whichEffect, string whichObject returns real
    native GetSpecialEffectModelObjectPositionY takes effect whichEffect, string whichObject returns real
    native GetSpecialEffectModelObjectPositionZ takes effect whichEffect, string whichObject returns real
    native GetSpecialEffectModelObjectPositionLoc takes effect whichEffect, string whichObject returns location
    native GetTrackableModelObjectPositionX takes trackable whichTrackable, string whichObject returns real
    native GetTrackableModelObjectPositionY takes trackable whichTrackable, string whichObject returns real
    native GetTrackableModelObjectPositionZ takes trackable whichTrackable, string whichObject returns real
    native GetTrackableModelObjectPositionLoc takes trackable whichTrackable, string whichObject returns location
    native GetWidgetModelObjectPositionX takes widget whichWidget, string whichObject returns real
    native GetWidgetModelObjectPositionY takes widget whichWidget, string whichObject returns real
    native GetWidgetModelObjectPositionZ takes widget whichWidget, string whichObject returns real
    native GetWidgetModelObjectPositionLoc takes widget whichWidget, string whichObject returns location
    native GetDestructableModelObjectPositionX takes destructable whichDestructable, string whichObject returns real
    native GetDestructableModelObjectPositionY takes destructable whichDestructable, string whichObject returns real
    native GetDestructableModelObjectPositionZ takes destructable whichDestructable, string whichObject returns real
    native GetDestructableModelObjectPositionLoc takes destructable whichDestructable, string whichObject returns location
    native GetItemModelObjectPositionX takes item whichItem, string whichObject returns real
    native GetItemModelObjectPositionY takes item whichItem, string whichObject returns real
    native GetItemModelObjectPositionZ takes item whichItem, string whichObject returns real
    native GetItemModelObjectPositionLoc takes item whichItem, string whichObject returns location
    native GetUnitModelObjectPositionX takes unit whichUnit, string whichObject returns real
    native GetUnitModelObjectPositionY takes unit whichUnit, string whichObject returns real
    native GetUnitModelObjectPositionZ takes unit whichUnit, string whichObject returns real
    native GetUnitModelObjectPositionLoc takes unit whichUnit, string whichObject returns location
    native GetProjectileModelObjectPositionX takes projectile whichProjectile, string whichObject returns real
    native GetProjectileModelObjectPositionY takes projectile whichProjectile, string whichObject returns real
    native GetProjectileModelObjectPositionZ takes projectile whichProjectile, string whichObject returns real
    native GetProjectileModelObjectPositionLoc takes projectile whichProjectile, string whichObject returns location
    Frame API
    native GetFrameCheckState takes fremehandle whichFrame returns boolean
    native SetFrameCheckState takes framehandle whichFrame, boolean isCheck returns nothing
    native GetTriggerFrameMouseButton takes nothing returns mousebuttontype
    native RegisterFrameMouseButton takes framehandle whichFrame, mousebuttontype whichButton, boolean isAdd returns nothing
  3. Исправлены CLI команды, которые порой не посылались/приходили с ошибкой.
  4. Исправлена ошибка "дочерних" приложений UjAPI, которая мешала им посылать CLI команды главному приложению.
  5. Исправлена IsTextTagVisible, которая возвращала инверсное значение.
  6. Исправлена CastAbilityTarget вызывающая критическую ошибку при применении на поддерживаемой целевом заклинании.
  7. Переделана SetUnitSelectable, теперь она более не имитирует "смерть", чтобы достигнуть невыделяемого/ненаводимого состояния.
  8. SetFrameTexture теперь работает с CSimpleButton/CCommandButton/CSimpleCheckBox.
  9. CSimpleCheckBox теперь поддерживается, так же добавлена поддержка CLICK/CHECK событий, вместе с RegisterFrameMouseButton.
  10. CONTROL_CLICK и MOUSE_DOUBLECLICK события теперь могут быть применены к CListBoxWar3 фреймам.
  11. Исправлены почти все ABILITY_RLF_ поля, которые имеют цифру в конце их typeId, они теперь должны работать как и задумывалось.
20
Вышла новая версия! Прокрутить к ресурсу

v1.0.22.88

  1. Новые Типы:
type pathingaitype extends handle
type collisiontype extends handle
type textfilehandle extends handle
  1. Новые Конвертеры:
constant native ConvertPathingAIType takes integer i returns pathingaitype
constant native ConvertCollisionType takes integer i returns collisiontype
  1. Новые Константы:
constant pathingaitype PATHING_AI_TYPE_FOOT = ConvertPathingAIType(0)
constant pathingaitype PATHING_AI_TYPE_AMPHIBIOUS = ConvertPathingAIType(64)
constant pathingaitype PATHING_AI_TYPE_FLOAT = ConvertPathingAIType(128)
constant pathingaitype PATHING_AI_TYPE_FLY = ConvertPathingAIType(192) MOVE_TYPE_AMPHIBIOUS | MOVE_TYPE_FLOAT
constant collisiontype COLLISION_TYPE_NONE = ConvertCollisionType(0)
constant collisiontype COLLISION_TYPE_ANY = ConvertCollisionType(1)
constant collisiontype COLLISION_TYPE_FOOT = ConvertCollisionType(2)
constant collisiontype COLLISION_TYPE_AIR = ConvertCollisionType(4)
constant collisiontype COLLISION_TYPE_BUILDING = ConvertCollisionType(8)
constant collisiontype COLLISION_TYPE_HARVESTER = ConvertCollisionType(16)
constant collisiontype COLLISION_TYPE_BLIGHTED = ConvertCollisionType(32)
constant collisiontype COLLISION_TYPE_FLOAT = ConvertCollisionType(64)
constant collisiontype COLLISION_TYPE_AMPHIBIOUS = ConvertCollisionType(128)
constant collisiontype COLLISION_TYPE_GROUND = ConvertCollisionType(202) COLLISION_TYPE_FOOT | COLLISION_TYPE_BUILDING | COLLISION_TYPE_FLOAT | COLLISION_TYPE_AMPHIBIOUS
constant originframetype ORIGIN_FRAME_INVENTORY_COVER_FRAME = ConvertOriginFrameType(45)
constant originframetype ORIGIN_FRAME_UNIT_TIP = ConvertOriginFrameType(46)
constant unitevent EVENT_UNIT_DECAY_FINISHED = ConvertUnitEvent(318)
constant playerunitevent EVENT_PLAYER_UNIT_DECAY_FINISHED = ConvertPlayerUnitEvent(319)
constant frameeventtype FRAMEEVENT_CHECKBOX_CHANGED = ConvertFrameEventType(17)
constant frameeventtype FRAMEEVENT_CONTROL_RELEASE = ConvertFrameEventType(18)
constant frameeventtype FRAMEEVENT_CONTROL_DRAG = ConvertFrameEventType(19)
constant unitintegerfield UNIT_IF_COLLISION_TYPE = ConvertUnitIntegerField('ucot')
constant unitintegerfield UNIT_IF_PATHING_AI = ConvertUnitIntegerField('upai')
constant unitintegerfield UNIT_IF_PATHING_TYPE = ConvertUnitIntegerField('upat')
  1. Удалённые Нативные Функции:
native SetUnitMoveTypeByIndex takes unit whichUnit, integer moveIndex returns nothing
  1. Новые Нативные Функции:
native IntToChar takes integer i returns string
native BitwiseSetBit takes integer i, integer bitIndex, integer bitValue returns integer
native BitwiseSetByte takes integer i, integer byteIndex, integer byteValue returns integer
native BitwiseToInteger takes integer byte1, integer byte2, integer byte3, integer byte4 returns integer

native GetTimeStamp takes boolean isLocalTime, integer isMiliseconds returns string
native ConsoleEnable takes boolean flag returns nothing
native ConsolePrint takes string s returns nothing

native TextFileOpen takes string filePath returns textfilehandle
native TextFileGetPath takes textfilehandle whichTextFile returns string
native TextFileClose takes textfilehandle whichTextFile returns nothing
native TextFileClear takes textfilehandle whichTextFile returns nothing
native TextFileErase takes textfilehandle whichTextFile returns nothing
native TextFileCountLines takes textfilehandle whichTextFile returns integer
native TextFileReadLine takes textfilehandle whichTextFile, integer lineNumber returns string
native TextFileReadAll takes textfilehandle whichTextFile returns string
native TextFileWriteLine takes textfilehandle whichTextFile, string text returns nothing

native IsCursorEnabled takes nothing returns boolean
native SetCursorEnabled takes boolean enable returns nothing
native IsCursorAnimationLocked takes nothing returns boolean
native SetCursorAnimationLocked takes boolean isLock returns nothing
native IsFrameDraggable takes framehandle whichFrame returns boolean
native SetFrameDraggable takes framehandle whichFrame, boolean enabled returns nothing
native GetFrameModel takes framehandle whichFrame returns string
native SetFrameSpriteMaterialScale takes framehandle whichFrame, real sizeX, real sizeY, real sizeZ returns nothing
native IsWidgetTipEnabled takes nothing returns boolean
native SetWidgetTipEnabled takes boolean enable returns nothing
native IsAbilityBaseTargetAllowed takes integer abilityId, widget source, widget target returns boolean source can be null
native IsWidgetTargetAllowed takes widget source, widget target, targetflag whichFlags returns boolean

native GetUnitCollisionType takes unit whichUnit returns collisiontype
native SetUnitCollisionType takes unit whichUnit, collisiontype collisionType returns nothing
  1. Изменение Констант:
JASS_MAX_ARRAY_SIZE increased from 8192 to 262144.
  1. Исправлена IsSpecialEffectVisible, ранее возвращала инверсное значение.
  2. Исправлена ShowFrame, теперь она полноценно работает с CSimpleRegion/CSimpleTexture/CSimpleFrame и со всеми их дочерними типами.
  3. SetFrameTexture изменено имя аргумента "flag" на "textureId".
  4. SetFrameTexture теперь работает на CConsoleUI.
Пример: call SetFrameTexture( frm, "UI\\Console\\Orc\\OrcUITile01.blp", 0, false )
Пояснение: Консоль имеет 4 "части" потому индексы 0-3.
  1. Исправлена IsAbilityTargetAllowed, теперь она правильно определяет все флаги целей.
  2. Тип хендла targetflag type теперь работает по принципу CDataFieldWar3, чтобы избежать критической ошибки на флагах выше 0x100000 конвертируемые через ConvertTargetFlag.
  3. Исправлено поле ITEM_SF_ABILITY_LIST возвращающая "<null>".
  4. Исправлена критическая ошибка вызванная ABILITY_SLF_SPELL_LIST.
  5. ABILITY_SLF_SPELL_LIST опция теперь так же работает и на базовом заклинании и на интстанцируемом (Get и Set).
Примечание: данное поле игнорирует минимальное/максимальное количество заклинании, потому что мне было лень это делать.
Пример использования: call SetAbilityStringLevelField( GetUnitAbility( u, 'Aspb' ), ABILITY_SLF_SPELL_LIST, 0, "AHad,AHhb,AHbz,AUau" )
  1. SetFrameTexture теперь автоматически будет проверять расширения .tga/.blp (в этом порядке) если в пути файла отсутствует расширение файла.
Пример: call SetFrameTexture( frm, "UI\\Console\\Orc\\OrcUITile01", 0, false ), автоматически добавит .blp в конец пути.
  1. Исправлено по-большей части сломанное API синхронизации, пометка для себя попытка инстансирования CGameWar3 - была ужасно тупой затеей.
  2. Исправлен очень-очень старый баг со спеллбуком, когда он был частью предмета и этот предмет был переложен из одного слота в другой, тем самым применение предмета не прорисовывало эти заклинания.
Пометка: старый метод "исправления" этой ошибки являлся банальным выбрасыванием и подбором предмета.
  1. Значительно улучшено Frame API для CCursor фрейма.
  2. Удалён (или по крайней мере сильно увеличен) лимит RCString (Джасс строки).
Пометка: оригинальный лимит был 4097 (4096 + 1 для нуль-терминирования).
  1. Отладчик Jass ошибок, теперь печатает ошибки сгруппировано.
  2. Исправлена ошибка ввиду которой функция GetFrameChildByIndex не выдавала фрейм на 0 индексе.
  3. Исправлена критическая ошибка с SetFrameEnabled и BlzSetFrameEnable на Backdrop фреймах.
  4. Исправлен нерабочий внутренний обработчик ITEM_IF полей. (одним из этих полей являлся ITEM_IF_GOLD_COST).
  5. Переделаны GetFrameChild и GetFrameChildrenCount.
  6. FRAMEEVENT_MOUSE_ENTER и FRAMEEVENT_MOUSE_LEAVE теперь могут быть применены с IconDamage, IconHero, IconArmor, и т.д..
  7. Исправлены некоторые "неподдерживаемые" клавиши, такие как OSKEY_TAB, VK_SHIFT, и т.д..
  8. Потенциально полностью исправлена ошибка "паузы игры", которая ломала одиночный режим при альт-табе, если какой-либо KeyEvent был зарегистрирован.
Пояснение: этот баг только "преследовал" режим одиночной игры и никак не мог произойти в локальной/мультиплеерном режиме.
  1. Исправлены нерабочие события FRAMEEVENT_MOUSE_DOWN и FRAMEEVENT_MOUSE_UP для всех CControl фреймов.
  2. Исправлена RegisterFrameMouseButton неправильно обрабатывающая mousebuttontype, MIDDLE считывался как RIGHT, а RIGHT как MIDDLE.
  3. Исправлена ошибка в UjAPILauncher.exe, которая порой не позволяла запустить игру в виду полноэкранного режима.
  4. Исправлена ошибка в UjAPILauncher.exe, которая не позволяла CLI обработчику запустить игру, если все настройки были пустые.
  5. Поле юнита COLLISION_SIZE теперь работает в уникальном/инстанцируемом типа. Данное поле не меняет базовые данные, для изменения базовых данных используйте SetUnitBaseRealField, и т.д..
  6. Get/SetUnitMoveAIType "Move" переименован в "Pathing" и они теперь используют pathingaitype как аргументы.
  7. Get/SetUnitMoveType "Move" переименован в "Pathing" и они теперь используют pathingtype как аргументы.
  8. Добавлен модуль UnlockMapSizeLimit.dll.
  9. Добавлена опция Remove Map Size Limit в UjAPILauncher.
  10. Добавлена CLI команда -nomapsizelimit, для загрузки UnlockMapSizeLimit модуля
Показан только небольшой набор комментариев вокруг указанного. Перейти к актуальным.
Чтобы оставить комментарий, пожалуйста, войдите на сайт.