Arma Reforger Script API
|
Management of placeable entities. More...
Public Member Functions | |
ResourceName | GetResourceNamePrefabID (int prefabID) |
Get prefab Resourcename of item with prefabID. | |
int | GetFilteredPrefabID (int index) |
Get prefab ID of item at given index. | |
int | GetFilteredPrefabCount () |
Get prefab ID of item at given index. | |
bool | AreFactionsShownOnContentCards () |
int | FilterExtendedSlots () |
Filters all prefab IDs that match the extended entity. | |
bool | IsExtendedEntity (notnull SCR_EditableEntityComponent entity) |
int | GetValidBlackListedLabels (out notnull array< EEditableEntityLabel > validBlackListLabels) |
Returns a list of lables that are currently blacklisted and any enity with the label will not be displayed in the list nor will the filter show. | |
void | FilterEntries () |
Filter entries cached on component with current filters. | |
bool | isMatchingToggledLabelsOfState (int savedStateIndex) |
bool | IsMatchingToggledLabels (notnull array< EEditableEntityLabel > entityLabels) |
Get if provided (entity) labels match current active selection, according to rules defined in config. | |
bool | IsLabelActive (EEditableEntityLabel entityLabel) |
Get if passed entity label currently active. | |
bool | IsAnyLabelActive () |
Get if any label is currently active. | |
void | SetLabel (EEditableEntityLabel entityLabel, bool active) |
Set label active. | |
void | ResetAllLabels (bool setConfigData=true) |
Reset the set labels. | |
void | GetActiveLabels (out notnull array< EEditableEntityLabel > activeLabels) |
int | GetActiveLabelCount () |
void | GetLabelGroups (out notnull array< ref SCR_EditableEntityCoreLabelGroupSetting > labelGroups) |
bool | GetLabelGroupType (EEditableEntityLabel entityLabel, out EEditableEntityLabelGroup groupLabel) |
int | GetLabelGroupOrder (EEditableEntityLabelGroup groupLabel) |
Get the order of the given group type. | |
bool | GetLabelsOfGroup (EEditableEntityLabelGroup labelGroupType, out notnull array< SCR_EditableEntityCoreLabelSetting > labels) |
bool | GetLabelUIInfo (EEditableEntityLabel entityLabel, out SCR_UIInfo uiInfo) |
bool | GetLabelUIInfoIfValid (EEditableEntityLabel entityLabel, EEditorMode currentMode, out SCR_UIInfo uiInfo) |
void | OrderLabels (inout notnull array< EEditableEntityLabel > activeLabels) |
Order given labels. | |
int | GetLabelOrderInGroup (EEditableEntityLabel entityLabel) |
Get order of given label type in it's label group. | |
string | GetLabelName (EEditableEntityLabel entityLabel) |
Get label name of given Label type. | |
void | SetPageIndex (int pageIndex) |
Set current page index. | |
int | GetPageIndex () |
Get current page index. | |
void | SetPageEntryCount (int pageEntryCount) |
int | GetPageEntryCount () |
void | SetBrowserStateIndex (int index) |
Set the index of the Browser state (which is set by tabs in content browser) | |
int | GetBrowserStateIndex () |
Get the index of the Browser state (which is set by tabs in content browser) | |
void | GetHiddenStateTabs (out notnull array< int > hiddenStateTabs) |
Get an array of all currently hidden state tabs. | |
void | SetStateTabVisible (int tabIndex, bool setVisible) |
Makes sure that certain state tabs are shown or hidden. | |
int | GetContentBrowserTabStates (out notnull array< SCR_EditorContentBrowserSaveStateDataUI > contentBrowserStates) |
Get list of all Browser content browser states. | |
SCR_EditorContentBrowserSaveStateData | GetContentBrowserTabState (int index=-1) |
Get Browser content browser state by index. | |
string | GetLastSearch () |
Get Last search string. | |
string | GetCurrentSearch () |
Get current search string. | |
void | SetCurrentSearch (string searchText) |
Set current search string. | |
void | SetSaveStateTabsEnabled (bool enabled) |
Set save state tabs enabled. | |
bool | CanSavePersistentBrowserStates () |
Get can save persistent browser states. | |
ScriptInvoker | GetOnLabelChanged () |
Get on label changed event. | |
ScriptInvoker | GetOnBrowserStatesSaved () |
Event send when browser states are saved. | |
ScriptInvoker | GetOnBrowserStatePreload () |
Event send just before browser state is loaded. | |
ScriptInvoker | GetOnBrowserStateLoaded () |
Event send when browser state is loaded. | |
ScriptInvoker | GetOnBrowserEntriesFiltered () |
Event send when browser state done loading. | |
ScriptInvoker | GetOnBrowserStateCleared () |
Event send when browser state is cleared. | |
ScriptInvoker | GetOnEnableSaveStateTabs () |
Event send when browser state is cleared. | |
ScriptInvoker | GetOnSearchConfirm () |
Get on search confirm, sends over current search string. | |
ScriptInvoker | GetOnStateTabVisibilityChanged () |
Called when state tab visibility is changed. | |
void | SetExtendedEntity (SCR_EditableEntityComponent extendedEntity) |
Set extended entity. | |
SCR_EditableEntityComponent | GetExtendedEntity () |
Get extended entity. | |
int | GetInfoCount () |
Get info for placeaable prefab with given index. | |
SCR_EditableEntityUIInfo | GetInfo (int index) |
Get info for placeaable prefab with given index. | |
int | FindIndexOfInfo (SCR_EditableEntityUIInfo info) |
Find index of given editable entity (info), used for find in content browser. | |
bool | GetFirstAvailabeBudgetCost (int prefabID, out SCR_EntityBudgetValue budgetCost) |
bool | CanPlace (int prefabID, out notnull array< ref SCR_EntityBudgetValue > budgetCosts, out SCR_UIInfo blockingBudgetInfo, bool showNotification=false) |
bool | CanPlace (notnull array< ResourceName > prefabs, EEditableEntityType fallbackBudgetType=-1) |
If there is enough budget for the given list or Prefabs to spawn. | |
bool | RefreshPreviewCost (int prefabID=-1) |
bool | OpenBrowserExtended (SCR_EditableEntityComponent extendedEntity, SCR_EditorContentBrowserDisplayConfig contentBrowserConfig=null) |
Start extending given entity. | |
bool | OpenBrowser (int browserStateIndex=-1) |
Open content browser with preset labels. | |
bool | OpenBrowserState (SCR_EditorContentBrowserSaveStateData saveState, SCR_EditorContentBrowserDisplayConfig displayConfig=null) |
Open content browser with external state. | |
bool | OpenBrowserLabelConfig (SCR_EditorContentBrowserDisplayConfig contentBrowserConfig) |
Open content browser with label config Allows labels to be active on opening and label groups/labels to be hidden. | |
void | SetBrowserState (int browserStateIndex=-1, bool saveCurrentState=false, bool clearConfigData=true) |
Set Browser State. | |
void | SetCustomBrowserState (SCR_EditorContentBrowserSaveStateData state, bool clearConfigData=true) |
void | SetBrowserState (SCR_EditorContentBrowserDisplayConfig contentBrowserConfig, bool saveCurrentState=false) |
Set Browser State. | |
bool | SaveBrowserState () |
Save the current browser state eg: Active filter labels, search string and current page. | |
void | AddRemoveLabelOfPersistentBrowserState (EEditableEntityLabel label, bool addLabel, int stateIndex=-1) |
Add or remove the given label. | |
void | ResetBrowserState (bool clearConfigData) |
void | OnPlaceEntityServer (int prefabID, SCR_EditableEntityComponent entity) |
void | OnMenuClosed () |
SCR_EditorContentBrowserDisplayConfig | GetContentBrowserDisplayConfig () |
Get the set content browser config. | |
void | SaveAllPersistentBrowserState () |
override void | EOnEditorInit () |
When the entity is created. | |
override void | EOnEditorActivateServer () |
When the component is activated (called on server) | |
override void | EOnEditorDeactivateServer () |
When the component is deactivated (called on server) | |
override void | EOnEditorActivate () |
When the component is activated. | |
override bool | EOnEditorActivateAsync (int attempt) |
When the component is activated. | |
override void | EOnEditorDeactivate () |
When the component is deactivated. | |
Public Member Functions inherited from SCR_BaseEditorComponent | |
sealed void | OnInitBase () |
sealed void | OnDeleteBase () |
sealed void | OnRequestBase (bool isOpen) |
sealed void | OnOpenedBase () |
sealed void | OnClosedBase () |
sealed void | OnPreActivateBase () |
sealed void | OnActivateBase () |
sealed bool | OnActivateAsyncBase (int attempt) |
sealed void | OnPostActivateBase () |
sealed void | OnDeactivateBase () |
sealed void | OnPostDeactivateBase () |
sealed bool | OnDeactivateAsyncBase (int attempt) |
sealed void | OnEffectBase (SCR_BaseEditorEffect effect) |
SCR_EditorManagerEntity | GetManager () |
Get editor manager this component belongs to. | |
SCR_BaseEditorComponent | FindEditorComponent (TypeName type, bool showError=false, bool modeFirst=false) |
Get the editor manager to which this component belongs. | |
EntityComponentPrefabData | GetEditorComponentData () |
Get prefab data of this component. | |
bool | IsRemoved () |
Check if the component is being deleted. | |
void | ResetEditorComponent () |
Reset values controlled by the component. | |
ScriptInvoker | GetOnEffect () |
Get event called when an effect is activated. | |
void | InitServer () |
void | InitOwner () |
override void | OnPostInit (IEntity owner) |
void | SCR_BaseEditorComponent (IEntityComponentSource src, IEntity ent, IEntity parent) |
void | ~SCR_BaseEditorComponent () |
Static Public Member Functions | |
static bool | OpenBrowserInstance (int browserStateIndex=-1) |
Open content browser. | |
static bool | OpenBrowserInstance (SCR_EditorContentBrowserSaveStateData saveState) |
Open content browser with state. | |
static bool | OpenBrowserLabelConfigInstance (SCR_EditorContentBrowserDisplayConfig contentBrowserConfig=null) |
Open content browser with label config Allows labels to be active on opening and label groups/labels to be hidden. | |
Static Public Member Functions inherited from SCR_BaseEditorComponent | |
static Managed | GetInstance (TypeName type, bool showError=false, bool modeFirst=false) |
Get the local instance of a component attached on editor manager (SCR_EditorManagerEntity). | |
static Managed | GetInstance (SCR_EditorBaseEntity editorManager, TypeName type, bool showError=false) |
Get instance of a component attached on specific editor manager / mode (SCR_EditorBaseEntity). | |
static int | GetAllInstances (TypeName type, out notnull array< Managed > outComponents) |
Get component instances on editor manager (SCR_EditorBaseEntity) and all its modes (SCR_EditorModeEntity). | |
Protected Member Functions | |
SCR_EditableEntityCache | FindExtendedEntityCache (ResourceName extendedEntityResource) |
bool | OpenBrowserMenu () |
void | ClearBrowserState (bool clearConfigData) |
void | LoadBrowserState (int stateIndex, bool clearConfigData) |
void | LoadBrowserState (SCR_EditorContentBrowserSaveStateData state, bool clearConfigData) |
bool | GetConfigState (SCR_EditorContentBrowserDisplayConfig browserConfig, out SCR_EditorContentBrowserSaveStateData state) |
void | SetConfigLabels () |
void | LoadAllPersistentBrowserState () |
Protected Member Functions inherited from SCR_BaseEditorComponent | |
bool | IsOnEditorManager () |
bool | IsOwner () |
bool | IsProxy () |
bool | IsMaster () |
bool | IsAdmin () |
SCR_BaseEditorComponent | GetParentComponent () |
void | SetParentComponent (SCR_BaseEditorComponent parent) |
void | SendNotification (ENotification notificationID, int selfID=0, int targetID=0, vector position=vector.Zero) |
void | EOnEditorDelete () |
When the entity is destroyed. | |
void | EOnEditorRequest (bool isOpen) |
When opening/closing request is sent to server. | |
void | EOnEditorOpen () |
When the editor is opened. | |
void | EOnEditorClose () |
When the editor is closed. | |
void | EOnEditorPreActivate () |
Before the component is activated. | |
void | EOnEditorPostActivate () |
When the component is activated, but after EOnEditorActivate() function was called in all components. | |
bool | EOnEditorDeactivateAsync (int attempt) |
When the component is deactivated. | |
void | EOnEditorPostDeactivate () |
When the component is deactivated, but after the next mode is activated. | |
void | EOnEditorDebug (array< string > debugTexts) |
Every frame while the editor is opened and debug menu is shown. | |
void | EOnEffect (SCR_BaseEditorEffect effect) |
When an effect is created in reaction an an event. | |
void | EOnEditorInitServer () |
When the entity is created (called on server) | |
void | EOnEditorDeleteServer () |
When the entity is destroyed (called on server) | |
void | EOnEditorOpenServer () |
When the editor is opened (called on server) | |
void | EOnEditorOpenServerCallback () |
When the editor is opened (called on server after async loading finished on client) | |
void | EOnEditorCloseServer () |
When the editor is closed (called on server) | |
void | EOnEditorCloseServerCallback () |
When the editor is closed (called on server after async loading finished on client) | |
Static Protected Attributes | |
const int | ASYNC_TICK_LENGTH = 16 |
Management of placeable entities.
void SCR_ContentBrowserEditorComponent.AddRemoveLabelOfPersistentBrowserState | ( | EEditableEntityLabel | label, |
bool | addLabel, | ||
int | stateIndex = -1 |
||
) |
Add or remove the given label.
label | Label to add or remove |
addLabel | If true will add the label. Else will remove |
stateIndex | Index of state to add/remove label off. Set to -1 to add/remove label of all states |
bool SCR_ContentBrowserEditorComponent.AreFactionsShownOnContentCards | ( | ) |
bool SCR_ContentBrowserEditorComponent.CanPlace | ( | int | prefabID, |
out notnull array< ref SCR_EntityBudgetValue > | budgetCosts, | ||
out SCR_UIInfo | blockingBudgetInfo, | ||
bool | showNotification = false |
||
) |
bool SCR_ContentBrowserEditorComponent.CanPlace | ( | notnull array< ResourceName > | prefabs, |
EEditableEntityType | fallbackBudgetType = -1 |
||
) |
If there is enough budget for the given list or Prefabs to spawn.
prefabs | Prefabs to get budget of |
fallbackBudgetType | If the system fails to get the budget then if fallbackBudgetType is not -1 it will fall back and get the default budget of the given type |
bool SCR_ContentBrowserEditorComponent.CanSavePersistentBrowserStates | ( | ) |
Get can save persistent browser states.
|
protected |
override void SCR_ContentBrowserEditorComponent.EOnEditorActivate | ( | ) |
When the component is activated.
Implements SCR_BaseEditorComponent.
override bool SCR_ContentBrowserEditorComponent.EOnEditorActivateAsync | ( | int | attempt | ) |
When the component is activated.
Asynchronous, can take multiple frames in case of complex operations.
[in] | attempt | Number of previous attempts to activate the component. |
Implements SCR_BaseEditorComponent.
override void SCR_ContentBrowserEditorComponent.EOnEditorActivateServer | ( | ) |
When the component is activated (called on server)
Implements SCR_BaseEditorComponent.
override void SCR_ContentBrowserEditorComponent.EOnEditorDeactivate | ( | ) |
When the component is deactivated.
Implements SCR_BaseEditorComponent.
override void SCR_ContentBrowserEditorComponent.EOnEditorDeactivateServer | ( | ) |
When the component is deactivated (called on server)
Implements SCR_BaseEditorComponent.
override void SCR_ContentBrowserEditorComponent.EOnEditorInit | ( | ) |
When the entity is created.
Implements SCR_BaseEditorComponent.
void SCR_ContentBrowserEditorComponent.FilterEntries | ( | ) |
Filter entries cached on component with current filters.
int SCR_ContentBrowserEditorComponent.FilterExtendedSlots | ( | ) |
Filters all prefab IDs that match the extended entity.
|
protected |
int SCR_ContentBrowserEditorComponent.FindIndexOfInfo | ( | SCR_EditableEntityUIInfo | info | ) |
Find index of given editable entity (info), used for find in content browser.
info | EditableEntityInfo of the entity |
int SCR_ContentBrowserEditorComponent.GetActiveLabelCount | ( | ) |
void SCR_ContentBrowserEditorComponent.GetActiveLabels | ( | out notnull array< EEditableEntityLabel > | activeLabels | ) |
int SCR_ContentBrowserEditorComponent.GetBrowserStateIndex | ( | ) |
Get the index of the Browser state (which is set by tabs in content browser)
|
protected |
SCR_EditorContentBrowserDisplayConfig SCR_ContentBrowserEditorComponent.GetContentBrowserDisplayConfig | ( | ) |
Get the set content browser config.
SCR_EditorContentBrowserSaveStateData SCR_ContentBrowserEditorComponent.GetContentBrowserTabState | ( | int | index = -1 | ) |
Get Browser content browser state by index.
Index | of state, use -1 to get current tab state |
int SCR_ContentBrowserEditorComponent.GetContentBrowserTabStates | ( | out notnull array< SCR_EditorContentBrowserSaveStateDataUI > | contentBrowserStates | ) |
Get list of all Browser content browser states.
[out] | List | of all states |
string SCR_ContentBrowserEditorComponent.GetCurrentSearch | ( | ) |
Get current search string.
SCR_EditableEntityComponent SCR_ContentBrowserEditorComponent.GetExtendedEntity | ( | ) |
Get extended entity.
The value gets erased during retrieval.
int SCR_ContentBrowserEditorComponent.GetFilteredPrefabCount | ( | ) |
Get prefab ID of item at given index.
index | Index of entry in filtered list/grid |
int SCR_ContentBrowserEditorComponent.GetFilteredPrefabID | ( | int | index | ) |
Get prefab ID of item at given index.
index | Index of entry in filtered list/grid |
bool SCR_ContentBrowserEditorComponent.GetFirstAvailabeBudgetCost | ( | int | prefabID, |
out SCR_EntityBudgetValue | budgetCost | ||
) |
void SCR_ContentBrowserEditorComponent.GetHiddenStateTabs | ( | out notnull array< int > | hiddenStateTabs | ) |
Get an array of all currently hidden state tabs.
[out] | hiddenStateTabs | Array of hidden state tabs |
SCR_EditableEntityUIInfo SCR_ContentBrowserEditorComponent.GetInfo | ( | int | index | ) |
Get info for placeaable prefab with given index.
Infos are store dint he same order as prefabs from SCR_PlacingEditorComponentClass.
Prefab | index |
int SCR_ContentBrowserEditorComponent.GetInfoCount | ( | ) |
Get info for placeaable prefab with given index.
int SCR_ContentBrowserEditorComponent.GetLabelGroupOrder | ( | EEditableEntityLabelGroup | groupLabel | ) |
Get the order of the given group type.
groupLabel | given group type |
void SCR_ContentBrowserEditorComponent.GetLabelGroups | ( | out notnull array< ref SCR_EditableEntityCoreLabelGroupSetting > | labelGroups | ) |
bool SCR_ContentBrowserEditorComponent.GetLabelGroupType | ( | EEditableEntityLabel | entityLabel, |
out EEditableEntityLabelGroup | groupLabel | ||
) |
string SCR_ContentBrowserEditorComponent.GetLabelName | ( | EEditableEntityLabel | entityLabel | ) |
Get label name of given Label type.
int SCR_ContentBrowserEditorComponent.GetLabelOrderInGroup | ( | EEditableEntityLabel | entityLabel | ) |
Get order of given label type in it's label group.
bool SCR_ContentBrowserEditorComponent.GetLabelsOfGroup | ( | EEditableEntityLabelGroup | labelGroupType, |
out notnull array< SCR_EditableEntityCoreLabelSetting > | labels | ||
) |
bool SCR_ContentBrowserEditorComponent.GetLabelUIInfo | ( | EEditableEntityLabel | entityLabel, |
out SCR_UIInfo | uiInfo | ||
) |
bool SCR_ContentBrowserEditorComponent.GetLabelUIInfoIfValid | ( | EEditableEntityLabel | entityLabel, |
EEditorMode | currentMode, | ||
out SCR_UIInfo | uiInfo | ||
) |
string SCR_ContentBrowserEditorComponent.GetLastSearch | ( | ) |
Get Last search string.
ScriptInvoker SCR_ContentBrowserEditorComponent.GetOnBrowserEntriesFiltered | ( | ) |
Event send when browser state done loading.
ScriptInvoker SCR_ContentBrowserEditorComponent.GetOnBrowserStateCleared | ( | ) |
Event send when browser state is cleared.
ScriptInvoker SCR_ContentBrowserEditorComponent.GetOnBrowserStateLoaded | ( | ) |
Event send when browser state is loaded.
ScriptInvoker SCR_ContentBrowserEditorComponent.GetOnBrowserStatePreload | ( | ) |
Event send just before browser state is loaded.
ScriptInvoker SCR_ContentBrowserEditorComponent.GetOnBrowserStatesSaved | ( | ) |
Event send when browser states are saved.
ScriptInvoker SCR_ContentBrowserEditorComponent.GetOnEnableSaveStateTabs | ( | ) |
Event send when browser state is cleared.
ScriptInvoker SCR_ContentBrowserEditorComponent.GetOnLabelChanged | ( | ) |
Get on label changed event.
ScriptInvoker SCR_ContentBrowserEditorComponent.GetOnSearchConfirm | ( | ) |
Get on search confirm, sends over current search string.
ScriptInvoker SCR_ContentBrowserEditorComponent.GetOnStateTabVisibilityChanged | ( | ) |
Called when state tab visibility is changed.
int SCR_ContentBrowserEditorComponent.GetPageEntryCount | ( | ) |
int SCR_ContentBrowserEditorComponent.GetPageIndex | ( | ) |
Get current page index.
ResourceName SCR_ContentBrowserEditorComponent.GetResourceNamePrefabID | ( | int | prefabID | ) |
Get prefab Resourcename of item with prefabID.
PrefabID | of item |
int SCR_ContentBrowserEditorComponent.GetValidBlackListedLabels | ( | out notnull array< EEditableEntityLabel > | validBlackListLabels | ) |
Returns a list of lables that are currently blacklisted and any enity with the label will not be displayed in the list nor will the filter show.
[out] | validBlackListLabels | List of blacklisted labels |
bool SCR_ContentBrowserEditorComponent.IsAnyLabelActive | ( | ) |
Get if any label is currently active.
bool SCR_ContentBrowserEditorComponent.IsExtendedEntity | ( | notnull SCR_EditableEntityComponent | entity | ) |
bool SCR_ContentBrowserEditorComponent.IsLabelActive | ( | EEditableEntityLabel | entityLabel | ) |
Get if passed entity label currently active.
EEditableEntityLabel | enum value |
bool SCR_ContentBrowserEditorComponent.IsMatchingToggledLabels | ( | notnull array< EEditableEntityLabel > | entityLabels | ) |
Get if provided (entity) labels match current active selection, according to rules defined in config.
bool SCR_ContentBrowserEditorComponent.isMatchingToggledLabelsOfState | ( | int | savedStateIndex | ) |
|
protected |
|
protected |
|
protected |
void SCR_ContentBrowserEditorComponent.OnMenuClosed | ( | ) |
void SCR_ContentBrowserEditorComponent.OnPlaceEntityServer | ( | int | prefabID, |
SCR_EditableEntityComponent | entity | ||
) |
bool SCR_ContentBrowserEditorComponent.OpenBrowser | ( | int | browserStateIndex = -1 | ) |
Open content browser with preset labels.
browserStateIndex | The state that needs to be loaded upon opening. -1 to use lasted saved state |
bool SCR_ContentBrowserEditorComponent.OpenBrowserExtended | ( | SCR_EditableEntityComponent | extendedEntity, |
SCR_EditorContentBrowserDisplayConfig | contentBrowserConfig = null |
||
) |
Start extending given entity.
Content browser will be opened, showing only entities which fir the extended entity. Selecting one will instantly place it.
extendedEntity | Extended entity |
config | with label data |
|
static |
Open content browser.
browserStateIndex | The state that needs to be loaded upon opening. -1 to use lasted saved state |
|
static |
Open content browser with state.
browserStateIndex | The state that needs to be loaded upon opening. -1 to use lasted saved state |
bool SCR_ContentBrowserEditorComponent.OpenBrowserLabelConfig | ( | SCR_EditorContentBrowserDisplayConfig | contentBrowserConfig | ) |
Open content browser with label config Allows labels to be active on opening and label groups/labels to be hidden.
config | with label data |
|
static |
Open content browser with label config Allows labels to be active on opening and label groups/labels to be hidden.
config | with label data |
|
protected |
bool SCR_ContentBrowserEditorComponent.OpenBrowserState | ( | SCR_EditorContentBrowserSaveStateData | saveState, |
SCR_EditorContentBrowserDisplayConfig | displayConfig = null |
||
) |
Open content browser with external state.
browserStateIndex | The state that needs to be loaded upon opening. -1 to use lasted saved state |
void SCR_ContentBrowserEditorComponent.OrderLabels | ( | inout notnull array< EEditableEntityLabel > | activeLabels | ) |
Order given labels.
Using group order and label order
[in,out] | labels | that need to be ordered |
bool SCR_ContentBrowserEditorComponent.RefreshPreviewCost | ( | int | prefabID = -1 | ) |
void SCR_ContentBrowserEditorComponent.ResetAllLabels | ( | bool | setConfigData = true | ) |
Reset the set labels.
setConfigData | if true and applicable will set config data hidding certain labels and setting labels active |
void SCR_ContentBrowserEditorComponent.ResetBrowserState | ( | bool | clearConfigData | ) |
void SCR_ContentBrowserEditorComponent.SaveAllPersistentBrowserState | ( | ) |
bool SCR_ContentBrowserEditorComponent.SaveBrowserState | ( | ) |
Save the current browser state eg: Active filter labels, search string and current page.
clearBrowserState | if should also clear the browser for when the browser stays open and a new state is given |
void SCR_ContentBrowserEditorComponent.SetBrowserState | ( | int | browserStateIndex = -1 , |
bool | saveCurrentState = false , |
||
bool | clearConfigData = true |
||
) |
Set Browser State.
browserStateIndex | index of state to set |
saveCurrentState | wether or not the current state should be saved |
void SCR_ContentBrowserEditorComponent.SetBrowserState | ( | SCR_EditorContentBrowserDisplayConfig | contentBrowserConfig, |
bool | saveCurrentState = false |
||
) |
Set Browser State.
contentBrowserConfig | config of state to set |
saveCurrentState | wether or not the current state should be saved |
void SCR_ContentBrowserEditorComponent.SetBrowserStateIndex | ( | int | index | ) |
Set the index of the Browser state (which is set by tabs in content browser)
New | Index |
|
protected |
void SCR_ContentBrowserEditorComponent.SetCurrentSearch | ( | string | searchText | ) |
Set current search string.
searchText | search string to save |
void SCR_ContentBrowserEditorComponent.SetCustomBrowserState | ( | SCR_EditorContentBrowserSaveStateData | state, |
bool | clearConfigData = true |
||
) |
void SCR_ContentBrowserEditorComponent.SetExtendedEntity | ( | SCR_EditableEntityComponent | extendedEntity | ) |
Set extended entity.
Upon next opening, the asset browser will show only prefabs which extend the entity.
extendedEntity | Extended entity |
void SCR_ContentBrowserEditorComponent.SetLabel | ( | EEditableEntityLabel | entityLabel, |
bool | active | ||
) |
Set label active.
EEditableEntityLabel | enum value |
bool | set active state |
void SCR_ContentBrowserEditorComponent.SetPageEntryCount | ( | int | pageEntryCount | ) |
void SCR_ContentBrowserEditorComponent.SetPageIndex | ( | int | pageIndex | ) |
Set current page index.
New | Index |
void SCR_ContentBrowserEditorComponent.SetSaveStateTabsEnabled | ( | bool | enabled | ) |
Set save state tabs enabled.
true | to set enabled |
void SCR_ContentBrowserEditorComponent.SetStateTabVisible | ( | int | tabIndex, |
bool | setVisible | ||
) |
Makes sure that certain state tabs are shown or hidden.
tabIndex | index of state tab |
setVisible | If should be hidden or not |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |