| scardoc;UI |
| Functions |
| Command_PlayerBroadcastMessage( PlayerID player, PlayerID dest, Integer messageType, String message ) | |
|
向玩家发送带有通用类型主体的消息。【功能:向指定玩家发送广播消息】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3954) | |
| FOW_Enable( Boolean enable ) | |
|
启用或禁用战争迷雾(FOW),包括地图边界外区域和所有实体。【功能:控制战争迷雾的开关】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (502) | |
| Game_ConvertInputEnabledFlagEnumToInt( InputEnabledFlag flag ) | |
|
将输入启用标志枚举转换为整数并返回。【功能:获取输入启用标志的整数值】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (472) | |
| Game_ConvertVisibilityFlagEnumToInt( VisibilityFlag flag ) | |
|
将可见性标志枚举转换为整数并返回。【功能:获取可见性标志的整数值】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (491) | |
| Game_EndSubTextFade( ) | |
|
立即移除由Game_SubTextFade(...)显示的副标题文本。【功能:立即清除副标题淡入文本】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (663) | |
| Game_EndTextTitleFade( ) | |
|
立即移除由Game_TextTitleFade(...)显示的标题文本。【功能:立即清除标题淡入文本】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (698) | |
| Game_GetInputEnabledFlag( ) | |
|
返回输入启用标志。【功能:获取当前输入启用状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (478) | |
| Game_GetLocalPlayer( ) | |
|
获取本地玩家。(仅应用于UI目的)(非确定性)。【功能:获取本地玩家对象】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (544) | |
| Game_GetLocalPlayerID( ) | |
|
获取本地玩家ID。(仅应用于UI目的)(非确定性)。【功能:获取本地玩家的ID】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (538) | |
| Game_GetVisibilityFlag( ) | |
|
返回游戏的可见性标志。【功能:获取游戏可见性状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (497) | |
| Game_HasLocalPlayer( ) | |
|
判断是否存在有效的本地玩家。(仅用于UI——非确定性)。【功能:检查是否有本地玩家】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (532) | |
| Game_IsPaused( ) | |
|
返回游戏是否已暂停。【功能:检查游戏暂停状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (466) | |
| Game_IsPerformanceTest( ) | |
|
Returns true if the we're running the performance test. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (460) | |
| Game_RequestSetLocalPlayer( PlayerID player ) | |
|
请求在下一次更新时设置本地玩家。(非确定性)。【功能:请求设置本地玩家】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (550) | |
| Game_SetInputEnabledFlag( Integer flag ) | |
|
设置输入启用标志。【功能:设置输入启用状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (484) | |
| Game_SetMapExplored( PlayerID player ) | |
|
为"探索全部"作弊设置地图已探索状态。【功能:设置地图探索状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (517) | |
| Game_SetPlayerColour( target player, 1 based player colour index. ) | |
|
将玩家颜色设置为指定的颜色索引。【功能:设置玩家颜色】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (707) | |
| Game_SetPlayerSlotColour( PlayerID player, Integer slotIdx ) | |
|
DEPRECATED! Use Game_SetPlayerColour instead. DEPRECATED! Use Game_SetPlayerColour instead. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (740) | |
| Game_SetPlayerUISlotColour( PlayerID player, Integer colourSlotIdx ) | |
|
DEPRECATED! Use Game_SetPlayerColour instead. DEPRECATED! Use Game_SetPlayerColour instead. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (754) | |
| Game_SetVisibility( VisibilityFlag flag, Boolean visible ) | |
|
Sets the visibility of the specified game visibility flag. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (510) | |
| Game_SetVisibilityFlag( Integer flag ) | |
|
Sets the game visibility flag. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (503) | |
| Game_SkipAllEvents( Boolean deleteQueued ) | |
|
Skips all events. Can either delete or skip queued events. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (586) | |
| Game_SkipEvent( ) | |
|
Skips the currently playing event (and stops current sound). |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (598) | |
| Game_SubTextFade( String location, String time, String detail, Real in, Real lifetime, Real out ) | |
|
Fade in and out two or three lines of subtext. This function has to support two lines, for backwards compatibility. The 'detail' line is therefore optional. |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (724) | |
| Game_SubTextFadeWithIcon( String line 1, String line 2, String line3, String detail, Real in, Real lifetime, Real out, String icon ) | |
|
Fade in and out one, two or three lines of subtext with an icon |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (739) | |
| Game_TextTitleFade( String text, Real fadeIn, Real duration, Real fadeOut ) | |
|
Shows title text that fades in and out over a specified durations Call UI_TitleDestroy to remove. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (671) | |
| Ghost_DisableSpotting( ) | |
|
Disable the spotting of enemy entities that may become ghosts in the FoW. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (572) | |
| Ghost_EnableSpotting( ) | |
|
Enable the spotting of enemy entities that may become ghosts in the FoW. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (558) | |
| HintMouseover_Add( String hintText, EGroupID hintTarget, Real targetRadius, Boolean looping ) | |
|
Adds a Hint Point that will only appear on Mouseover of the target. |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (244) | |
| HintMouseover_Remove( String hintText, EGroupID hintTarget ) | |
|
Removes a Mouseover Hint Point from the managing function. |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (339) | |
| HintPoint_Add( StackVar where, Boolean bVisible, String hintText, number OPT_height, Integer OPT_actionType, String OPT_iconName, number OPT_priority, Boolean OPT_visibleInFOW, String OPT_dataTemplate ) | |
|
Creates a hintpoint attached to a Marker, EGroup, SGroup or position If range is set to 0, then the hintpoint is rangeless, see the design document for rangeless features. The following types of hintpoint actions are available. HPAT_Objective HPAT_Hint HPAT_Critical HPAT_Movement HPAT_Attack HPAT_FormationSetup HPAT_RallyPoint HPAT_DeepSnow HPAT_CoverGreen HPAT_CoverYellow HPAT_CoverRed HPAT_Detonation HPAT_Vaulting |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (134) | |
| HintPoint_AddToEGroup( EGroupID egroup, Integer priority, Boolean visible, LuaFunction function, String dataTemplate, String hint, Boolean arrow, Position arrowOffset, Integer actionType, String iconName, Boolean visibleInFOW ) | |
|
已弃用。【功能:已弃用的实体组提示点附加函数】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (772) | |
| HintPoint_AddToEntity( EntityID entity, Integer priority, Boolean visible, LuaFunction function, String dataTemplate, String hint, Boolean arrow, Position arrowOffset, Integer objectiveID, Integer actionType, String iconName, Boolean visibleInFOW ) | |
|
仅供内部使用。【功能:内部使用的实体提示点附加函数】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (815) | |
| HintPoint_AddToPosition( Position position, Integer priority, Boolean visible, LuaFunction function, String dataTemplate, String hint, Boolean arrow, Position arrowOffset, Integer objectiveID, Integer actionType, String iconName, Boolean visibleInFOW ) | |
|
仅供内部使用。【功能:内部使用的位置提示点附加函数】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (858) | |
| HintPoint_AddToSGroup( SGroupID sgroup, Integer priority, Boolean visible, LuaFunction function, String dataTemplate, String hint, Boolean arrow, Position arrowOffset, Integer actionType, String iconName, Boolean visibleInFOW ) | |
|
已弃用。【功能:已弃用的小队组提示点附加函数】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (896) | |
| HintPoint_AddToSquad( SquadID squad, Integer priority, Boolean visible, LuaFunction function, String dataTemplate, String hint, Boolean arrow, Position arrowOffset, Integer objectiveID, Integer actionType, String iconName, Boolean visibleInFOW ) | |
|
仅供内部使用。【功能:内部使用的小队提示点附加函数】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (939) | |
| HintPoint_ClearFacing( Integer id ) | |
|
清除提示点箭头的朝向值。【功能:清除提示点箭头朝向】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (990) | |
| HintPoint_Remove( Integer HintPointID ) | |
|
移除一个提示点。【功能:删除提示点】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (191) | |
| HintPoint_RemoveAll( ) | |
|
移除所有提示点。【功能:删除所有提示点】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (970) | |
| HintPoint_SetDisplayOffset( Integer hintpointID, Real x, Real y, Real OPT_z ) | |
|
设置提示点的显示偏移,世界提示点为3D,任务栏绑定提示点为2D(忽略z轴)。【功能:设置提示点显示偏移】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (221) | |
| HintPoint_SetDisplayOffsetInternal( Integer id, Position offset ) | |
|
为指定提示点添加投影偏移。【功能:设置提示点投影偏移】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (983) | |
| HintPoint_SetFacingEntity( Integer id, EntityID entity ) | |
|
使提示点箭头朝向此实体。【功能:设置提示点箭头朝向实体】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (997) | |
| HintPoint_SetFacingPosition( Integer id, Position position ) | |
|
使提示点箭头朝向此位置。【功能:设置提示点箭头朝向位置】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1005) | |
| HintPoint_SetFacingSquad( Integer id, SquadID squad ) | |
|
使提示点箭头朝向此小队。【功能:设置提示点箭头朝向小队】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1013) | |
| HintPoint_SetVisible( Integer HintPointID, Boolean bVisible ) | |
|
设置提示点的可见性。目前不考虑战争迷雾。【功能:设置提示点可见性】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (206) | |
| HintPoint_SetVisibleInternal( Integer id, Boolean visible ) | |
|
显示或隐藏指定的提示点。【功能:控制提示点显示隐藏】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1021) | |
| MapIcon_ClearFacing( Integer id ) | |
|
清除地图图标的朝向值。【功能:清除地图图标朝向】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1112) | |
| MapIcon_CreateArrow( Marker/Pos position_from, Marker/Pos position_to, Integer red, Integer green, Integer blue, Integer alpha ) | |
|
在提供的两个位置之间的元地图上创建箭头。【功能:在地图上创建箭头标记】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (770) | |
| MapIcon_CreateEntity( EntityID entity, String icon, Real scale, Integer red, Integer green, Integer blue, Integer alpha ) | |
|
创建一个指向实体的地图图标。【功能:创建实体地图图标】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1057) | |
| MapIcon_CreatePosition( Position position, String icon, Real scale, Integer red, Integer green, Integer blue, Integer alpha ) | |
|
创建一个指向位置的地图图标。【功能:创建位置地图图标】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1075) | |
| MapIcon_CreateSquad( SquadID squad, String icon, Real scale, Integer red, Integer green, Integer blue, Integer alpha ) | |
|
创建一个指向小队的地图图标。【功能:创建小队地图图标】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1081) | |
| MapIcon_Destroy( Integer id ) | |
|
移除一个地图图标。【功能:删除地图图标】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1092) | |
| MapIcon_DestroyAll( ) | |
|
移除所有地图图标。【功能:删除所有地图图标】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1099) | |
| MapIcon_SetFacingEntity( Integer id, EntityID entity ) | |
|
使地图图标朝向此实体。【功能:设置地图图标朝向实体】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1118) | |
| MapIcon_SetFacingPosition( Integer id, Position position ) | |
|
使地图图标朝向此位置。【功能:设置地图图标朝向位置】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1124) | |
| MapIcon_SetFacingSquad( Integer id, SquadID squad ) | |
|
使地图图标朝向此小队。【功能:设置地图图标朝向小队】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1130) | |
| Misc_AddEntitiesToGroup( EGroupID group, String entityIDsEncoded, Boolean includeSquads ) | |
|
将提供的实体ID追加到实体组中。【功能:向实体组添加实体】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1603) | |
| Misc_AddRestrictCommandsCircle( Position position, Real radius ) | |
|
添加另一个限制命令的圆形区域。【功能:添加命令限制圆形区域】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1788) | |
| Misc_AddRestrictCommandsMarker( MarkerID marker ) | |
|
添加另一个限制命令的标记区域。【功能:添加命令限制标记区域】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1770) | |
| Misc_AddRestrictCommandsOBB( Position minPosition, Position maxPosition ) | |
|
添加另一个限制命令的轴对齐包围盒(AABB)。【功能:添加命令限制包围盒区域】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1796) | |
| Misc_AddSquadsToGroup( SGroupID group, String entityIDsEncoded ) | |
|
将提供的小队ID追加到小队组中。【功能:向小队组添加小队】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1588) | |
| Misc_AreDefaultCommandsEnabled( ) | |
|
返回右键命令输入的启用/禁用状态。(非确定性)。【功能:检查右键命令是否启用】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1818) | |
| Misc_ClearControlGroup( Integer groupIndex ) | |
|
清除指定的控制组。【功能:清空控制组】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1475) | |
| Misc_ClearSelection( ) | |
|
清除当前选择。【功能:清空当前选择】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1482) | |
| Misc_ClearSubselection( ) | |
|
清除当前子选择。【功能:清空当前子选择】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1489) | |
| Misc_DoWeaponHitEffectOnEntity( EntityID entity, Position pos, ScarWeaponPBG weaponPBG, Boolean penetrated ) | |
|
从视角摄像机原点对实体执行武器命中效果。【功能:在实体上播放武器命中特效】 WeaponID is the property bag group id; if penetrated is set to false, deflection effect would be played instead |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1847) | |
| Misc_GetControlGroupContents( Integer groupIndex, SGroupID squads, EGroupID nonSquadEntities ) | |
|
返回控制组(0到9)的内容。小队放入小队组,非小队实体放入实体组。【功能:获取控制组内容】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1497) | |
| Misc_GetEntityControlGroup( EntityID entity ) | |
|
返回此实体所属的控制组索引(0到9),若无则返回-1。【功能:获取实体所属控制组】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1533) | |
| Misc_GetHiddenPositionOnPath( Integer checkType, Position origin, Position destination, Integer ebpID, Real stepDistance, Real cameraPadding, PlayerID FOWPlayer, Boolean debugDisplay ) | |
|
返回从起点到终点路径上的隐藏位置。若无则返回起点位置。【功能:获取路径上的隐藏位置】 Possible check types are CheckHiddenFromCamera, CheckHiddenInFOW and CheckHiddenBothCameraFOW Camera check determined by the camera frustum. use cameraPadding to increase the area around the camera when doing the check FOW check requires a valid player ID passed in stepDistance is the interval along the path that the hidden points will be checked ( min is 1 metre ) If no hidden position is found, position ( 0, 0, 0 ) is returned Don't use this for multi-player SCAR script!! |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1240) | |
| Misc_GetMouseOnTerrain( ) | |
|
返回鼠标在地形上的世界坐标位置。(非确定性)。【功能:获取鼠标在地形上的位置】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1172) | |
| Misc_GetMouseOverEntity( ) | |
|
返回鼠标下方的实体(如果存在)。(非确定性)。【功能:获取鼠标悬停的实体】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1136) | |
| Misc_GetMouseOverSquad( ) | |
|
返回鼠标下方的实体小队(如果存在)。(非确定性)。【功能:获取鼠标悬停的小队】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1154) | |
| Misc_GetScreenCenterPosition( ) | |
|
返回屏幕中心的世界坐标位置。【功能:获取屏幕中心的世界坐标】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1184) | |
| Misc_GetSelectedEntities( EGroupID group, Boolean subselection ) | |
|
清除给定组,并将当前完整选择(或子选择,如果为true)添加到组中。【功能:获取当前选中的实体】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1567) | |
| Misc_GetSelectedSquads( SGroupID group, Boolean subselection ) | |
|
清除给定组,并将当前完整选择(或子选择,如果为true)添加到组中。【功能:获取当前选中的小队】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1622) | |
| Misc_GetSimDefaultStepsPerSecond( ) | |
|
返回默认模拟速率。【功能:获取默认模拟帧率】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1655) | |
| Misc_GetSimRate( ) | |
|
返回当前模拟速率。【功能:获取当前模拟帧率】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1643) | |
| Misc_GetSquadControlGroup( SquadID squad ) | |
|
返回此小队所属的控制组索引(0到9),若无则返回-1。【功能:获取小队所属控制组】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1550) | |
| Misc_IsEGroupSelected( EGroupID egroup, Boolean all ) | |
|
如果实体组中有任意或全部被选中则返回true。【功能:检查实体组是否被选中】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\scarutil.scar] (2444) | |
| Misc_IsEntityOnScreen( EntityID entity, Real percent ) | |
|
检查小队当前是否在屏幕上。(非确定性)。【功能:检查小队是否在屏幕内】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1452) | |
| Misc_IsEntitySelected( EntityID entity ) | |
|
如果指定实体当前被选中则返回true。【功能:检查实体是否被选中】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1661) | |
| Misc_IsMouseOverEntity( ) | |
|
如果鼠标悬停在实体上则返回true。(非确定性)。【功能:检查鼠标是否悬停在实体上】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1148) | |
| Misc_IsMouseOverSquad( ) | |
|
如果鼠标悬停在小队上则返回true。(非确定性)。【功能:检查鼠标是否悬停在小队上】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1166) | |
| Misc_IsSelectionInputEnabled( ) | |
|
Returns the enabled/disabled state of the selection input. (not deterministic) |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1832) | |
| Misc_IsSGroupSelected( SGroupID sgroup, Boolean all ) | |
|
如果小队组中有任意或全部被选中则返回true。【功能:检查小队组是否被选中】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\scarutil.scar] (2431) | |
| Misc_IsSquadOnScreen( SquadID squad, Real percent ) | |
|
检查实体当前是否在屏幕上。(非确定性)。【功能:检查实体是否在屏幕内】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1465) | |
| Misc_IsSquadSelected( SquadID squad ) | |
|
如果指定小队当前被选中则返回true。【功能:检查小队是否被选中】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1669) | |
| Misc_RemoveCommandRestriction( ) | |
|
移除所有命令限制。【功能:清除命令限制】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1804) | |
| Misc_RestrictCommandsToMarker( MarkerID marker ) | |
|
设置命令限制的标记区域。【功能:设置命令限制标记】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1811) | |
| Misc_SelectEGroup( EGroupID egroup ) | |
|
选择实体组中的所有实体。【功能:选择实体组】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\scarutil.scar] (2467) | |
| Misc_SelectEntity( EntityID entity ) | |
|
将完整选择设置为指定实体。【功能:选择指定实体】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1677) | |
| Misc_SelectSGroup( SGroupID sgroup, Boolean selected ) | |
|
选择(或取消选择)小队组中的所有小队。【功能:选择或取消选择小队组】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\scarutil.scar] (2456) | |
| Misc_SelectSquad( SquadID squad, Boolean selected ) | |
|
将完整选择设置为指定实体。【功能:选择指定小队】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1689) | |
| Misc_SetDefaultCommandsEnabled( Boolean enabled ) | |
|
启用/禁用右键命令输入。【功能:设置右键命令启用状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1824) | |
| Misc_SetEGroupSelectable( EGroupID egroup, Boolean selectable ) | |
|
允许(或不允许)实体组中的所有实体被选择。【功能:设置实体组可选择性】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\scarutil.scar] (2489) | |
| Misc_SetEntityControlGroup( EntityID entity, Integer groupIndex ) | |
|
使实体属于指定控制组。如果它已属于其他控制组,则先从原组移除再添加到新组。【功能:设置实体控制组】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1704) | |
| Misc_SetEntitySelectable( EntityID entity, Boolean selectable ) | |
|
禁用/启用指定实体的可选择性。【功能:设置实体可选择性】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1747) | |
| Misc_SetSelectionInputEnabled( Boolean enabled ) | |
|
启用/禁用选择输入。【功能:设置选择输入启用状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1838) | |
| Misc_SetSGroupSelectable( SGroupID sgroup, Boolean selectable ) | |
|
允许(或不允许)小队组中的所有小队被选择。【功能:设置小队组可选择性】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\scarutil.scar] (2478) | |
| Misc_SetSimRate( Real rate ) | |
|
设置模拟速率。【功能:设置模拟帧率】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1649) | |
| Misc_SetSquadControlGroup( SquadID squad, Integer groupIndex ) | |
|
使小队属于指定控制组。如果它已属于其他控制组,则先从原组移除再添加到新组。【功能:设置小队控制组】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1726) | |
| Misc_SetSquadSelectable( SquadID squad, Boolean selectable ) | |
|
禁用/启用指定小队的可选择性。【功能:设置小队可选择性】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1759) | |
| Obj_CreatePopup( target objective ID, title in the pop up, override the data template defined in the objective with another one specified for this pop up. ) | |
|
创建一个屏幕中央的目标弹出窗口(通过TitleModel)。【功能:创建目标弹出窗口】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1881) | |
| Obj_HideProgress( ) | |
|
隐藏目标进度面板。【功能:隐藏目标进度面板】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1910) | |
| Obj_HideProgressEx( Integer progressBarIndex ) | |
|
隐藏指定的目标进度面板。【功能:隐藏指定目标进度面板】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1898) | |
| Obj_SetProgressBlinking( Boolean blinking ) | |
|
使目标进度条闪烁或停止闪烁。【功能:设置进度条闪烁状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1938) | |
| Obj_ShowProgress( String title, Real progress ) | |
|
显示带有进度条的目标进度面板——重复调用以更新进度。值应在[0-1]范围内标准化。【功能:显示目标进度条】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1932) | |
| Obj_ShowProgress2( String title, Real progress ) | |
|
显示带有进度条的目标进度面板——重复调用以更新进度。值应在[0-1]范围内标准化。显示在屏幕中央。【功能:在屏幕中央显示目标进度条】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1946) | |
| Obj_ShowProgressEx( Integer progressBarIndex, String title, Real progress, Boolean critical ) | |
|
显示指定的带有进度条的目标进度面板——重复调用以更新进度。值应在[0-1]范围内标准化。如果为关键目标,进度条将闪烁。【功能:显示指定目标进度条】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1918) | |
| Obj_ShowProgressTimer( Real progress ) | |
|
显示带有计时器图标的目标进度面板——重复调用以更新进度。值应以秒为单位。【功能:显示目标计时器进度】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1953) | |
| PlayerColour_ClearConfigChangedCallback( ) | |
|
清除配置更改回调。【功能:清除玩家颜色配置更改回调】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1993) | |
| PlayerColour_Disable( ) | |
|
清除玩家颜色覆盖,改为使用"PlayerColour"设置。【功能:禁用玩家颜色覆盖】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1960) | |
| PlayerColour_Enable( ) | |
|
强制启用玩家颜色,覆盖当前的"PlayerColour"设置。【功能:启用玩家颜色覆盖】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1973) | |
| PlayerColour_SetConfigChangedCallback( LuaFunction function ) | |
|
设置当用户更改玩家颜色配置时触发的回调。【功能:设置玩家颜色配置更改回调】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (1986) | |
| Subtitle_EndAllSpeech( ) | |
|
提前结束所有排队的语音。【功能:结束所有排队语音】 This is useful for skipping all speech events that may have been queued |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2011) | |
| Subtitle_EndCurrentSpeech( ) | |
|
提前结束当前播放的语音并播放队列中的下一个。【功能:结束当前语音并播放下一个】 This is useful for skipping speech events |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2002) | |
| Subtitle_PlayCharacterSpeech( String name, String text, String icon, String audioCtrlEvent ) | |
|
播放全局语音,并在覆盖层显示字幕、角色图标和名称。【功能:播放角色语音和字幕】 'text' localization id is used for both subtitle text and speech please make sure that the the speech file is 2D Call UI_TitleDestroy to remove. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2074) | |
| Subtitle_PlayNarrativeEvent( String str ) | |
|
根据事件的反射ID,将叙事事件作为一系列带字幕的语音转换播放。【功能:播放叙事事件语音】 Pass in the reflect ID (make sure it is represented as an integer) of a NarrativeEvent which is authored in a NarrativeCollection data object. This function will add a wait object which will terminate when all transitions are complete. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2195) | |
| Subtitle_PlayNarrativeLine( String str ) | |
|
播放全局语音,并根据给定ID在叙事行中指定字幕和角色图标。【功能:播放叙事行语音】 The line should be present in an authorable narrative collection and referenced by the reflect ID Adds a wait object if successful. Returns the title ID, call UI_TitleDestroy to remove. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2166) | |
| Subtitle_PlaySpeechForSquadFromLocString( ScarBriefingActorPBG briefingActorPBG, String loc, Boolean disableIconSubtitle, String audioCtrlEvent, SquadID squad, Boolean is3D ) | |
|
播放全局语音,在覆盖层显示字幕和角色图标,并在小队装饰器上显示语音气泡。【功能:播放小队语音和字幕】 localization id is used for both subtitle text and speech If the speech file is 3D, make sure that is3D is set to true. Shows speech bubble indicator on squad decorator. Call UI_TitleDestroy to remove. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2239) | |
| Subtitle_PlaySpeechInternal( ScarBriefingActorPBG briefingActorPBG, String loc, Boolean disableIconSubtitle, String audioCtrlEvent, SquadID squad, Boolean is3D ) | |
|
播放带字幕的全局语音。【功能:播放全局语音和字幕】 localization id is used for both subtitle text and speech please make sure that the the speech file is 2D Call UI_TitleDestroy to remove. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2027) | |
| Subtitle_UnstickCurrentSpeech( ) | |
|
移除当前播放语音(如果有)的"粘滞"状态。【功能:解除当前语音粘滞状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2245) | |
| SynchronizedCommand_PlayerAbility( PlayerID player, PlayerID dest, ScarAbilityPBG abilityPBG, Boolean skipCostAndPrereq ) | |
|
向玩家发送玩家技能命令(PCMD_Ability)。【功能:发送玩家技能命令】 Only use this function from code which is executed for a single player (such as UI button callbacks). |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3974) | |
| SynchronizedCommand_PlayerPosAbility( PlayerID player, PlayerID dest, Position pos, ScarAbilityPBG abilityPBG, Boolean skipCostAndPrereq ) | |
|
向玩家发送位置技能命令(PCMD_Ability)。【功能:发送位置技能命令】 Only use this function from code which is executed for a single player (such as UI button callbacks). |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (4003) | |
| SynchronizedCommand_PlayerPosDirAbility( PlayerID player, PlayerID dest, Position pos, Position dir, ScarAbilityPBG abilityPBG, Boolean skipCostAndPrereq ) | |
|
向玩家发送位置/方向技能命令(PCMD_Ability)。【功能:发送位置方向技能命令】 Only use this function from code which is executed for a single player (such as UI button callbacks). |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (4034) | |
| Taskbar_IsVisible( ) | |
|
如果任务栏可见则返回true。(非确定性)。【功能:检查任务栏是否可见】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2333) | |
| Taskbar_SetVisibility( Boolean visible ) | |
|
设置任务栏可见性。【功能:设置任务栏可见性】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2326) | |
| ThreatArrow_Add( Integer GroupID, EGroupID Threat, String OPT_icon ) | |
|
向现有威胁组添加威胁。【功能:添加威胁到威胁组】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (659) | |
| ThreatArrow_CreateGroup( String dataTemplate, Marker/Pos/Entity/Squad/Group target1, Marker/Pos/Entity/Squad/Group OPT_target2... ) | |
|
创建一个由单个箭头表示的威胁组。威胁可以是实体、小队、实体组、小队组、位置或标记。【功能:创建威胁箭头组】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (628) | |
| ThreatArrow_DestroyAllGroups( ) | |
|
销毁所有威胁组。【功能:销毁所有威胁组】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (653) | |
| ThreatArrow_DestroyGroup( Integer GroupID ) | |
|
销毁一个威胁组。【功能:销毁威胁组】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (648) | |
| ThreatArrow_Remove( Integer GroupID, EGroupID Threat ) | |
|
从现有威胁组中移除威胁。【功能:从威胁组移除威胁】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (692) | |
| UI_AddHintAndFlashAbility( PlayerID playerid, AbilityID abilityID, String text, Integer length, Integer OPT_blueprint_filter ) | |
|
如果单位被选中,在任务栏上创建并闪烁技能按钮。【功能:添加并闪烁技能提示按钮】 Length parameter determines how long to flash the item, and the blueprint filter is used if certain squad types need to be selected before flashing the button. |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (537) | |
| UI_AllTerritoryHide( ) | |
|
关闭所有领土边界线。每次调用UI_AllTerritoryHide必须与UI_AllTerritoryShow配对。【功能:隐藏所有领土边界线】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2408) | |
| UI_AllTerritoryShow( ) | |
|
开启所有领土边界线。每次调用UI_AllTerritoryShow必须与UI_AllTerritoryHide配对。【功能:显示所有领土边界线】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2416) | |
| UI_AutosaveMessageHide( ) | |
|
已弃用!移除由UI_AutosaveMessageShow添加的消息。【功能:隐藏自动保存消息】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3641) | |
| UI_AutosaveMessageShow( ) | |
|
已弃用!显示游戏正在自动保存的消息。【功能:显示自动保存消息】 DEPRECATED! Call UI_AutosaveMessageHide to remove the message. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3633) | |
| UI_CapturePointLinesHide( ) | |
|
关闭占领点边界线。每次调用UI_CapturePointLinesHide必须与UI_CapturePointLinesShow配对。【功能:隐藏占领点边界线】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2374) | |
| UI_CapturePointLinesShow( ) | |
|
开启占领点边界线。每次调用UI_CapturePointLinesShow必须与UI_CapturePointLinesHide配对。【功能:显示占领点边界线】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2383) | |
| UI_ClearEventCueFromID( Integer id ) | |
|
清除具有特定ID的事件提示。ID从UI_CreateEventCueClickable或UI_CreateEventCueClickableByType的返回值获取。【功能:根据ID清除事件提示】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2480) | |
| UI_ClearEventCues( ) | |
|
清除所有活动的事件提示。【功能:清除所有事件提示】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2472) | |
| UI_ClearModalAbilityPhaseCallback( ) | |
|
清除技能阶段回调。【功能:清除技能阶段回调】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3330) | |
| UI_ClearModalConstructionPhaseCallback( ) | |
|
清除建造阶段回调。【功能:清除建造阶段回调】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3346) | |
| UI_ClearModalHoverCallback( ) | |
|
清除建造阶段回调。【功能:清除悬停回调】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3362) | |
| UI_ClearSkipNISCallback( ) | |
|
清除尝试跳过NIS(非交互序列)的回调。【功能:清除跳过NIS回调】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3392) | |
| UI_CommandCardSetColumns( Integer columns ) | |
|
设置命令卡片的列数。【功能:设置命令卡片列数】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3460) | |
| UI_CommandCardSetRows( Integer rows ) | |
|
设置命令卡片的行数。【功能:设置命令卡片行数】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3453) | |
| UI_CoverPreviewHide( ) | |
|
关闭掩体预览。每次调用UI_CoverPreviewHide必须与UI_CoverPreviewShow配对。【功能:隐藏掩体预览】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2340) | |
| UI_CoverPreviewShow( ) | |
|
开启掩体预览。每次调用UI_CoverPreviewShow必须与UI_CoverPreviewHide配对。【功能:显示掩体预览】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2348) | |
| UI_CreateCommand( ) | |
|
创建一个将被解释为UI属性命令的表。【功能:创建UI命令表】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (796) | |
| UI_CreateCustomEventCueFrom( sender player. Can be null. Used for retrieving player information. E.g. team color., event type id, visible duration of the event cue., enable repeat filtering if > 0. Make the event cue alive but not visible beyond its lifetime., when repeatTime > 0) how many times a event cue with the same customEventType can be repeated during repeatTime, when repeatTime > 0) filter out a event cue if it's within the range of a existing one with the same customEventType, title text if any, description text if any, ui data template of the event cue., path to the custom icon if any., color red channel., color green channel., color blue channel., color red alpha., event cue visibility flags. ECV_None: not visible ECV_Queue: visible in the queue ECV_Title: visible as title ECV_Queue | ECV_Title : both, Control event cue visibility in action ECAV_Global ECAV_ExecuterIsOwnOrAlly ECAV_ExecuterIsEnemy ECAV_CanSeeExecutor ECAV_CanSeeTarget ECAV_CanEnemySeeExecutor ECAV_TargetIsOwn ECAV_TargetIsAlly ECAV_OwnsTargetAndExecuterIsEnemy ECAV_AlliedToTargetAndExecuterIsEnemy ECAV_ExecuterIsOwn ECAV_ExecuterIsAlly ECAV_CanSeeTargetAndExecutorIsOwnOrAlly ECAV_CanSeeTargetAndExecutorIsOwn, function callback function. ) | |
|
从发送者创建事件提示。【功能:创建自定义事件提示】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2544) | |
| UI_CreateDataContext( ) | |
|
创建一个将被解释为UI属性数据上下文的表。【功能:创建UI数据上下文】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (804) | |
| UI_CreateEntityKickerMessage( target entity, localized message to display., relative path to the icon. Displayed before the message. Empty string ("") to not use an icon., relative path to the symbol. Displayed after the message. Empty string ("") to not use a symbol., offset on the x axis., offset on the y axis. ) | |
|
在指定实体上创建自定义踢出消息。【功能:创建实体踢出消息】 Only works if the tuning_simulation->ui->kicker_settings->custom_entity is enabled. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2757) | |
| UI_CreateEventCue( String title, String description, String data_template, String icon_path, String sound_path, EventCueVisibility OPT_visibility, Real OPT_lifetime ) | |
|
创建一个没有回调的事件提示(无法知道何时被点击)。【功能:创建事件提示】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (516) | |
| UI_CreateEventCueClickable( Integer customEventType, Real lifetime, Integer repeatCount, Real repeatTime, String title, String description, String dataTemplate, String iconPath, String soundPath, Integer red, Integer green, Integer blue, Integer alpha, EventCueVisibility visibility, LuaFunction function ) | |
|
创建自定义事件提示。传入的Lua函数回调接受ID作为参数,可用于通过UI_ClearEventCueFromID清除事件提示。【功能:创建可点击事件提示】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2594) | |
| UI_CreateEventCueClickableByType( UIEventType eventType, Real lifetime, String title, String description, String dataTemplate, String iconPath, String soundPath, Integer red, Integer green, Integer blue, Integer alpha, EventCueVisibility visibility, LuaFunction function ) | |
|
创建命名事件提示。返回与创建的事件提示项关联的ID。此ID可用于通过UI_ClearEventCueFromID清除事件提示项。传入的Lua函数回调接受ID作为参数。【功能:创建按类型的可点击事件提示】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2638) | |
| UI_CreateEventCueClickableCanQueue( Integer customEventType, Real lifetime, Integer repeatCount, Real repeatTime, String title, String description, String dataTemplate, String iconPath, String soundPath, Integer red, Integer green, Integer blue, Integer alpha, EventCueVisibility visibility, LuaFunction function ) | |
|
创建自定义事件提示。传入的Lua函数回调接受ID作为参数。启用可选参数,允许事件仅在位于堆栈前端时计时,确保在高优先级堆栈中始终可见。【功能:创建可排队的事件提示】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2679) | |
| UI_CreateMinimapBlip( StackVar where, Real lifetime, String blipDataTemplate ) | |
|
在小地图上创建一个标记点;返回标记点的ID。【功能:创建小地图标记点】 'where' can be an entity, marker, position, egroup, sgroup, or squad. |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (93) | |
| UI_CreateMinimapBlipOnMarkerFrom( PlayerID sender, MarkerID marker, Real lifeTime, String dataTemplate ) | |
|
从发送者在ScarMarker上创建标记点。发送者用于获取玩家信息如队伍颜色。【功能:在标记上创建小地图标记点】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2877) | |
| UI_CreateMinimapBlipOnPosFrom( PlayerID sender, Position position, Real lifeTime, String dataTemplate ) | |
|
从发送者在指定位置创建标记点。发送者用于获取玩家信息如队伍颜色。【功能:在位置上创建小地图标记点】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2898) | |
| UI_CreatePositionKickerMessage( target position, localized message to display, relative path to the icon. Displayed before the message., relative path to the symbol. Displayed after the message., number of seconds the kicker should be displayed for. 0 to use default value., offset on the x axis., offset on the y axis. ) | |
|
在指定位置创建自定义踢出消息。【功能:创建位置踢出消息】 Only works if the tuning_simulation->ui->kicker_settings->custom_position is enabled. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2791) | |
| UI_CreateSGroupKickerMessage( PlayerID player, SGroupID sgroup, String message ) | |
|
在小队上创建自定义踢出消息并显示给玩家。【功能:创建小队组踢出消息】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (489) | |
| UI_CreateSimpleEntityKickerMessage( target entity, localized message to display. ) | |
|
在指定实体上创建简单的纯文本踢出消息。【功能:创建简单实体踢出消息】 Only works if the tuning_simulation->ui->kicker_settings->custom_entity is enabled. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2770) | |
| UI_CreateSimplePositionKickerMessage( target position, localized message to display ) | |
|
在指定位置创建简单的纯文本踢出消息。【功能:创建简单位置踢出消息】 Only works if the tuning_simulation->ui->kicker_settings->custom_position is enabled. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2803) | |
| UI_CreateSimpleSquadKickerMessage( target squad, localized message to display ) | |
|
在指定小队上创建简单的纯文本踢出消息。【功能:创建简单小队踢出消息】 Only works if the tuning_simulation->ui->kicker_settings->custom_squad is enabled. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2837) | |
| UI_CreateSquadKickerMessage( target squad, localized message to display, relative path to the icon. Displayed before the message., relative path to the symbol. Displayed after the message., number of seconds the kicker should be displayed for. 0 to use default value., offset on the x axis., offset on the y axis. ) | |
|
在指定小队上创建自定义踢出消息。【功能:创建小队踢出消息】 Only works if the tuning_simulation->ui->kicker_settings->custom_squad is enabled. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2824) | |
| UI_CreateTagForPosition( a scar position. Won't accept a position extremely close (std::numeric_limits<float>::min()) to the existing ones. ) | |
|
Create a position tag. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2985) | |
| UI_CursorHide( ) | |
|
隐藏鼠标光标。【功能:隐藏鼠标光标】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3887) | |
| UI_CursorShow( ) | |
|
如果鼠标光标已被隐藏则显示它。【功能:显示鼠标光标】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3881) | |
| UI_DeleteMinimapBlip( Integer blipID ) | |
|
移除已在小地图上创建的标记点。【功能:删除小地图标记点】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (83) | |
| UI_DestroyTagForPosition( same of or extremely close (std::numeric_limits<float>::min()) to an existing position. If there are multiple candidates, delete the closest. ) | |
|
销毁位置标签。【功能:销毁位置标签】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3038) | |
| UI_EnableEntityDecorator( EntityID entity, Boolean enabled ) | |
|
启用或禁用实体装饰器。默认为启用装饰器。【功能:设置实体装饰器启用状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3759) | |
| UI_EnableEntityMinimapIndicator( EntityID entity, Boolean enabled ) | |
|
启用或禁用实体小地图指示器。默认为启用。【功能:设置实体小地图指示器启用状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3749) | |
| UI_EnableEntitySelectionVisuals( EntityID entity, Boolean enabled ) | |
|
启用或禁用实体选择视觉效果。默认为启用视觉效果。【功能:设置实体选择视觉效果】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3795) | |
| UI_EnableGameEventCueType( GameEventID gameEventType, Boolean enable ) | |
|
启用或禁用事件提示。【功能:设置游戏事件提示启用状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2715) | |
| UI_EnableResourceTypeKicker( ResourceType resourceType, Boolean enable ) | |
|
启用或禁用资源踢出消息。【功能:设置资源踢出消息启用状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2729) | |
| UI_EnableSquadDecorator( SquadID squad, Boolean enabled ) | |
|
启用或禁用小队装饰器。默认为启用装饰器。【功能:设置小队装饰器启用状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3805) | |
| UI_EnableSquadMinimapIndicator( SquadID squad, Boolean enabled ) | |
|
启用或禁用小队小地图指示器。默认为启用。【功能:设置小队小地图指示器启用状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3851) | |
| UI_EnableUIEventCueType( UIEventType uiEventType, Boolean enable ) | |
|
启用或禁用事件提示。【功能:设置UI事件提示启用状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2722) | |
| UI_FadeOutEventCueFromID( Integer id ) | |
|
触发事件提示开始淡出动画。动画在XAML中确定。【功能:触发事件提示淡出动画】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2708) | |
| UI_FlashAbilityButton( ScarAbilityPBG ability, Boolean stopOnClick ) | |
|
闪烁技能命令按钮。将返回值传递给UI_StopFlashing以停止闪烁。【功能:闪烁技能按钮】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3054) | |
| UI_FlashConstructionButton( ScarEntityPBG ebp, Boolean stopOnClick ) | |
|
闪烁建造项目命令按钮。将返回值传递给UI_StopFlashing以停止闪烁。【功能:闪烁建造按钮】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3130) | |
| UI_FlashEntity( EntityID entity, String actionOnName ) | |
|
使用[tuning][ui]中的属性闪烁实体。【功能:闪烁实体】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3261) | |
| UI_FlashEntityCommandButton( EntityCommandType command, Boolean stopOnClick ) | |
|
闪烁实体命令按钮。将返回值传递给UI_StopFlashing以停止闪烁。【功能:闪烁实体命令按钮】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3098) | |
| UI_FlashEventCue( Integer eventCueID, Boolean stopOnClick ) | |
|
闪烁事件提示项。将返回值传递给UI_StopFlashing以停止闪烁。【功能:闪烁事件提示】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3159) | |
| UI_FlashMenu( String menuName, Boolean stopOnClick ) | |
|
闪烁菜单命令按钮。将返回值传递给UI_StopFlashing以停止闪烁。【功能:闪烁菜单按钮】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3141) | |
| UI_FlashObjectiveCounter( Integer objectiveID ) | |
|
闪烁目标计数器。将返回值传递给UI_StopFlashing以停止闪烁。【功能:闪烁目标计数器】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3169) | |
| UI_FlashObjectiveIcon( Integer objectiveID, Boolean stopOnClick ) | |
|
闪烁目标。将返回值传递给UI_StopFlashing以停止闪烁。【功能:闪烁目标图标】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3178) | |
| UI_FlashProductionBuildingButton( String type, Boolean stopOnClick ) | |
|
闪烁生产建筑按钮。将返回值传递给UI_StopFlashing以停止闪烁。【功能:闪烁生产建筑按钮】 Type should match the unit_class of a Production Building in the army bag for the player's race |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3202) | |
| UI_FlashProductionButton( ProductionItemType type, PropertyBagGroup pbg, Boolean stopOnClick ) | |
|
闪烁生产项目命令按钮。将返回值传递给UI_StopFlashing以停止闪烁。【功能:闪烁生产按钮】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3189) | |
| UI_FlashSquadCommandButton( SquadCommandType command, Boolean stopOnClick ) | |
|
闪烁小队命令按钮。将返回值传递给UI_StopFlashing以停止闪烁。【功能:闪烁小队命令按钮】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3114) | |
| UI_FlashUSSEntityButton( EntityID entity, Boolean stopOnClick ) | |
|
闪烁此实体在USS上的按钮。将返回值传递给UI_StopFlashing以停止闪烁。【功能:闪烁USS实体按钮】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3065) | |
| UI_FlashUSSSquadButton( SquadID squad, Boolean stopOnClick ) | |
|
闪烁此小队在USS上的按钮。将返回值传递给UI_StopFlashing以停止闪烁。【功能:闪烁USS小队按钮】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3082) | |
| UI_GetAbilityIconName( ScarAbilityPBG abilityBag ) | |
|
返回指定技能的图标名称。【功能:获取技能图标名称】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3737) | |
| UI_GetColourAsString( ) | |
|
将颜色表转换为ARGB十六进制字符串(例如{a=0, r=255, g=204, b=136} => #00FFCC88)。【功能:将颜色转换为字符串】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (812) | |
| UI_GetDecoratorsEnabled( ) | |
|
返回是否启用了所有装饰器。【功能:检查装饰器是否启用】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2423) | |
| UI_GetDecoratorVisibilityEntity( Entity entity ) | |
|
获取表示实体装饰器可见性的枚举值。【功能:获取实体装饰器可见性】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2446) | |
| UI_GetDecoratorVisibilitySquad( Squad squad ) | |
|
获取表示小队装饰器可见性的枚举值。【功能:获取小队装饰器可见性】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2460) | |
| UI_HighlightSGroup( SGroupID sgroup, Real duration ) | |
|
在UI中高亮显示小队组,持续指定时间。【功能:高亮显示小队组】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (67) | |
| UI_HighlightSquad( SquadID squad, Real duration ) | |
|
开启小队高亮UI功能,持续指定时间。【功能:高亮显示小队】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3302) | |
| UI_IsReplay( ) | |
|
当前是否为回放比赛。【功能:检查是否为回放模式】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3467) | |
| UI_LetterboxFade( Real r, Real g, Real b, Real a, Real duration, Real aspectRatio, Boolean persistent ) | |
|
在指定秒数内将信箱模式淡入到指定的RGBA颜色,按给定的宽高比。【功能:设置信箱模式淡入效果】 Call UI_TitleDestroy to remove. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3582) | |
| UI_ModalVisual_CreateReticule( ScarReticulePBG reticulePbg, Real radius ) | |
|
创建一个准星。【功能:创建准星】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3313) | |
| UI_ModalVisual_Destroy( Integer id ) | |
|
销毁模态视觉元素。【功能:销毁模态视觉元素】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3324) | |
| UI_NewHUDFeature( HUDFeatureType newHUDFeature, String featureText, String featureIcon, Real duration ) | |
|
显示一条消息和指向HUD功能的箭头。【功能:显示HUD功能提示】 Accepted parameters are: HUDF_AbilityCard, HUDF_MiniMap, HUDF_Upgrades, HUDF_CommandCard, HUDF_None Call UI_TitleDestroy to remove. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3683) | |
| UI_OutOfBoundsLinesHide( ) | |
|
关闭地形边界线。每次调用UI_OutOfBoundsLinesHide必须与UI_OutOfBoundsLinesShow配对。【功能:隐藏地形边界线】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2356) | |
| UI_OutOfBoundsLinesShow( ) | |
|
开启地形边界线。每次调用UI_OutOfBoundsLinesShow必须与UI_OutOfBoundsLinesShowHide配对。【功能:显示地形边界线】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2365) | |
| UI_RestrictBuildingPlacement( MarkerID marker ) | |
|
只允许在标记内放置建筑。【功能:限制建筑放置区域】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3429) | |
| UI_ScreenFade( Real r, Real g, Real b, Real a, Real duration, Boolean persistent ) | |
|
在指定秒数内将屏幕淡入到指定的RGBA颜色。淡入期间鼠标输入被阻止,可以控制淡入结束后是否继续阻止输入(请小心!)。【功能:设置屏幕淡入效果】 Call UI_TitleDestroy to remove. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3557) | |
| UI_SectorsHide( ) | |
|
关闭区域线。每次调用UI_SectorsHide必须与UI_SectorsShow配对。【功能:隐藏区域线】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2391) | |
| UI_SectorsShow( ) | |
|
开启区域线。每次调用UI_SectorsShow必须与UI_SectorsHide配对。【功能:显示区域线】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2399) | |
| UI_SetAlliedBandBoxSelection( Boolean allow ) | |
|
设置游戏允许同时选择盟友小队和自己的小队。【功能:设置盟友框选选择】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3399) | |
| UI_SetAllowLoadAndSave( Boolean allowLoadAndSave ) | |
|
启用或禁用暂停菜单中的加载和保存功能。【功能:设置加载保存功能启用状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3861) | |
| UI_SetControlGroupSelectedCallback( in the format of function(controlGroupIndex) ) | |
|
设置当用户通过热键或控制组按钮选择控制组时触发的回调。【功能:设置控制组选择回调】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (4061) | |
| UI_SetCPMeterVisibility( Boolean visible ) | |
|
设置指挥点数计量表的可见性。【功能:设置指挥点数计量表可见性】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3670) | |
| UI_SetDecoratorsEnabled( Boolean enabled ) | |
|
启用或禁用所有装饰器。【功能:设置所有装饰器启用状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2429) | |
| UI_SetEnablePauseMenu( Boolean isEnable ) | |
|
启用/禁用按下暂停菜单热键时显示暂停菜单。【功能:设置暂停菜单启用状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3378) | |
| UI_SetEntityDecorator( EntityID entity, String decorator ) | |
|
显式设置实体应使用的装饰器。【功能:设置实体装饰器】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3769) | |
| UI_SetEntityGhostSpottedStaggered( EntityID entity ) | |
|
设置游戏以被发现状态显示实体幽灵。【功能:设置实体幽灵被发现状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3406) | |
| UI_SetForceShowSubtitles( Boolean forceShowSubtitles ) | |
|
设置游戏强制显示字幕,即使玩家已关闭字幕。【功能:设置强制显示字幕】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3422) | |
| UI_SetMinimapTrueNorth( Real trueNorthAngleDeg ) | |
|
设置小地图真北角度(以度为单位)。【功能:设置小地图真北角度】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3446) | |
| UI_SetModalAbilityPhaseCallback( LuaFunction function ) | |
|
设置当玩家点击技能并获得目标UI时调用的函数。函数有2个参数:[蓝图]技能蓝图,[整数]阶段:TP_Position、TP_Facing(仅当技能需要朝向时)、TP_Issued(非确定性)或TP_Cancelled(对于所有可发行项)。【功能:设置技能阶段回调】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3339) | |
| UI_SetModalConstructionPhaseCallback( LuaFunction function ) | |
|
设置当玩家点击建造项目并获得目标UI时调用的函数。函数有2个参数:[蓝图]技能蓝图,[整数]阶段:TP_Position、TP_Facing(仅当技能需要朝向时)、TP_Issued(非严格)或TP_Cancelled(对于所有可发行项)。【功能:设置建造阶段回调】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3355) | |
| UI_SetModalHoverCallback( LuaFunction function ) | |
|
设置当玩家悬停在建造项目上时调用的函数。函数有2个参数:[蓝图]技能蓝图,[整数]阶段。【功能:设置悬停回调】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3371) | |
| UI_SetSGroupSpecialLevel( SGroupID sgroup, Integer level ) | |
|
为目标小队组中所有小队的squad_ui_ext中定义的等级装饰器设置等级。【功能:设置小队组等级装饰器】 fields in the squad_ui_ext are special_decorator_friendly and special_decorator_enemy if level value is -1 it will hide the special decorator, if no level is defined -1 is default |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (756) | |
| UI_SetSilhouetteEnabled( EGroupID unit, Boolean enabled ) | |
|
启用或禁用小队/实体的轮廓显示。【功能:设置轮廓显示启用状态】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (39) | |
| UI_SetSkipNISCallback( LuaFunction function ) | |
|
设置当用户尝试跳过NIS(非交互序列)时触发的回调。【功能:设置跳过NIS回调】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3385) | |
| UI_SetSquadDecorator( SquadID squad, String decorator ) | |
|
显式设置小队应使用的装饰器。【功能:设置小队装饰器】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3815) | |
| UI_SetSquadDecoratorAlwaysVisible( SquadID squad, Boolean alwaysVisible ) | |
|
开启或关闭小队装饰器始终可见。默认为装饰器不始终可见。【功能:设置小队装饰器始终可见】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3841) | |
| UI_SetUIExtEnabled( EGroupID unit, Boolean enabled ) | |
|
启用或禁用小队/实体的UI扩展。【功能:设置UI扩展启用状态】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (10) | |
| UI_StopFlashing( ) | |
|
停止由之前调用UI_Flash*()创建的闪烁。【功能:停止闪烁】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (612) | |
| UI_SystemMessageHide( String message ) | |
|
移除由Game_ShowSystemMessage添加的消息。【功能:隐藏系统消息】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3657) | |
| UI_SystemMessageShow( String message ) | |
|
在游戏暂停文本显示区域显示系统消息。【功能:显示系统消息】 Call Game_HideSystemMessage to remove the message. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3650) | |
| UI_TitleDestroy( ) | |
|
使用标题创建函数返回的ID移除标题。【功能:销毁标题】 |
|
| Source: [E:\P4Share\engine\assets\engine\scar\ui.scar] (619) | |
| UI_ToggleDecorators( ) | |
|
切换所有装饰器的开/关状态。【功能:切换装饰器状态】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (2437) | |
| UI_UnrestrictBuildingPlacement( ) | |
|
移除建筑放置限制。【功能:解除建筑放置限制】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3439) | |
| UIWarning_Show( String text ) | |
|
在关键警报消息区域显示简短的UI警告。【功能:显示UI警告】 Call UI_TitleDestroy to remove. |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3702) | |
| WinWarning_PublishLoseReminder( PlayerID player, Integer warningLevel ) | |
|
触发UI事件提示和音频提示,提醒玩家即将输掉游戏。【功能:发布失败警告提醒】 The lower the warningLevel, the closer the player is to losing and the more intense the warning is |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3713) | |
| WinWarning_ShowLoseWarning( String text, Real fadeIn, Real duration, Real fadeOut ) | |
|
调用UI_TitleDestroy来移除。【功能:显示失败警告】 |
|
| Source: [E:\P4Share\engine\source\runtime\gamecore\public\gamecore\lua\lualibs\scenario\LuaLibGameUI.cpp] (3727) | |