Bug fixes:
UserUnit:GetCustomName
asks for 2 arguments, but actually needs 1ForkThread
crashes withcfunction
, so we forbid thisUnit:SetStat
no longer crashes the game. Returns true if stat wasn’t set. Must be set withUnit:GetStat
CMauiControl:SetAlpha
tweaks: dont change whole mask, only alpha part and check for 3rd argument as boolean
New Features bugs eventually :
- 5th argument for
IssueBuildMobile
as flag for picking all units - introduced
table.clone
(which is partially safe tbh). Clones given table (game freezes in attempt to clone recursive table, eventually leading to stack overflow. So, suitable for non recursive table only.) - new category
OBSTRUCTSBUILDING
for props. Props with this category obstruct building on them - new category
CANLANDONWATER
for air units. Units with this category can chill on water (like transports do) - units won’t reclaim being paused anymore
Unit:GetCommandQueue
returns a list of commands of a given unit- During init stage for certain hardware game will pick different cpu cores to run faster
- New method to
WorldView
:ProjectMultiple
projects multiple vectors at once
- New methods for
UserUnit
:GetInterpolatedPosition
returns position of a unit interpolated by current frameGetFractionComplete
returns float from 0 to 1
- New method to
MauiBitmap
:SetColorMask
sets color mask of bitmap
- Console command
ui_StrategicIconScale
. Sets icons' scale. Useful for high res screens. - Custom World Rendering: adds 2 functions for drawing circle and rect in world.
UI_DrawRect
UI_DrawCircle
both functions must be called withinOnRenderWorld
ofgamemain.lua
.
- new UI function
CopyToClipboard(string)
copies string to clipboard