Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_FeedbackDialogUI Interface Reference
Inheritance diagram for SCR_FeedbackDialogUI:
SCR_ConfigurableDialogUi

Public Member Functions

override void OnMenuShow ()
 
override void OnMenuOpen (SCR_ConfigurableDialogUiPreset preset)
 Called last of all, after all the initialization of main element done.
 
- Public Member Functions inherited from SCR_ConfigurableDialogUi
Widget GetRootWidget ()
 
OverlayWidget GetDialogBaseOverlay ()
 Returns the base dialog overlay (the rectangle covered by the background). Useful for dialog wide darkening (e.g. by SCR_LoadingOverlay)
 
Widget GetContentLayoutRoot ()
 Returns the root of the content layout.
 
SCR_ConfigurableDialogUiPreset GetDialogPreset ()
 
void Close ()
 
void SetTitle (string text)
 
void SetMessage (string text)
 
void SetMessageColor (Color color)
 
TextWidget GetMessageWidget ()
 
string GetMessageStr ()
 
void SetTitleIcon (ResourceName image, string imageName)
 Set title icons with custom image.
 
void SetIconColor (Color color)
 Set title icons with custom image.
 
void SetStyle (EConfigurableDialogStyle type)
 Sets colors based on style.
 
void BindButtonConfirm (SCR_InputButtonComponent button)
 Allows to register a custom button to call OnConfirm (i.e. one not in the conf files but placed by hand in the layout)
 
void BindButtonCancel (SCR_InputButtonComponent button)
 Allows to register a custom button to call OnCancel (i.e. one not in the conf files but placed by hand in the layout)
 
void BindButtonGeneric (SCR_InputButtonComponent button, string tag=string.Empty)
 Allows to register a custom button to call OnButtonPressed (i.e. one not in the conf files but placed by hand in the layout). An empty tag will result in the widget's name being used instead.
 
SCR_InputButtonComponent FindButton (string tag)
 Returns a button with given tag.
 
string GetButtonTag (SCR_InputButtonComponent button)
 Returns a button's tag.
 
void OnMenuUpdate (float tDelta)
 
void OnMenuFocusGained ()
 
void OnMenuFocusLost ()
 
void OnMenuHide ()
 
void OnMenuClose ()
 

Static Public Member Functions

static bool CanSendFeedback ()
 
static void SendFeedback (string content, int type, int category, bool bPrivate)
 
static void ClearFeedback ()
 
static SCR_FeedbackDialogUI OpenFeedbackDialog ()
 
- Static Public Member Functions inherited from SCR_ConfigurableDialogUi
static SCR_ConfigurableDialogUi CreateFromPreset (ResourceName presetsResourceName, string tag, SCR_ConfigurableDialogUi customDialogObj=null)
 Creates a dialog from preset.
 
static SCR_ConfigurableDialogUi GetCurrentDialog ()
 
static string GetCurrentDialogTag ()
 
static bool IsPresetValid (ResourceName presetsResourceName, string tag)
 

Static Public Attributes

static const int TYPE_NAMES_COUNT = 2
 Available types of feedback.
 
static const string TYPE_TAGS [TYPE_NAMES_COUNT]
 
static const LocalizedString TYPE_NAMES [TYPE_NAMES_COUNT]
 
static const int CATEGORY_NAMES_COUNT = 8
 Available categories of feedback.
 
static const string CATEGORY_TAGS [CATEGORY_NAMES_COUNT]
 
static const LocalizedString CATEGORY_NAMES [CATEGORY_NAMES_COUNT]
 
- Static Public Attributes inherited from SCR_ConfigurableDialogUi
static const ResourceName NAVIGATION_BUTTON_LAYOUT = "{87037226B1A2064B}UI/layouts/WidgetLibrary/Buttons/WLib_NavigationButtonSuperSmall.layout"
 
static const string BUTTON_CONFIRM = "confirm"
 
static const string BUTTON_CANCEL = "cancel"
 

Protected Member Functions

override void OnConfirm ()
 
void OnAttachFile ()
 
void OnWriteModeLeaveInternal (string text)
 
void OnTextChange (string text)
 
void OnCategoryChanged (SCR_ComboBoxComponent comp=null, int index=0)
 
- Protected Member Functions inherited from SCR_ConfigurableDialogUi
void OnCancel ()
 
void OnButtonPressed (SCR_InputButtonComponent button)
 
void Init (Widget root, SCR_ConfigurableDialogUiPreset preset, MenuBase proxyMenu)
 
void InitWidgets ()
 
SCR_InputButtonComponent CreateButton (SCR_ConfigurableDialogUiButtonPreset buttonPreset)
 
void Internal_Close ()
 
void InitAttributedVariables ()
 Verifies that all attributed variables are set up.
 

Protected Attributes

ref SCR_FeedbackDialogContentWidgets m_Widgets
 
ref SCR_FeedbackDialogPredefinedSentences m_FeedbackSentences
 
SCR_InputButtonComponent m_ConfirmButton
 
SCR_InputButtonComponent m_TOSButton
 
bool m_bShouldEnableConfirmButton
 
- Protected Attributes inherited from SCR_ConfigurableDialogUi
float m_fFadeInTime
 
ResourceName m_sNavigationButtonLayout
 
string m_sWidgetNameButtonsLeft
 
string m_sWidgetNameButtonsRight
 
string m_sWidgetNameButtonsCenter
 
ImageWidget m_wImgTopLine
 
ImageWidget m_wImgTitleIcon
 
TextWidget m_wTitle
 
TextWidget m_wMessage
 
VerticalLayoutWidget m_wContentVerticalLayout
 
ref map< string, SCR_InputButtonComponentm_aButtonComponents = new map<string, SCR_InputButtonComponent>
 
Widget m_wRoot
 
OverlayWidget m_wDialogBase
 
SCR_DynamicFooterComponent m_DynamicFooter
 
MenuBase m_ProxyMenu
 
ref SCR_ConfigurableDialogUiPreset m_DialogPreset
 
string m_sLastPressedButtonTag
 
bool m_bIsClosing
 

Static Protected Attributes

const string TOS_BUTTON = "ProfileTOS"
 
const string TOS_LINK = "Link_PrivacyPolicy"
 
static const string FEEDBACK_DIALOG_NAME = "feedback_dialog"
 
static ref FeedbackData m_LastFeedback
 
static float m_fLastFeedbackTime = -float.MAX
 
static const float FEEDBACK_SEND_TIMEOUT = 5000
 
- Static Protected Attributes inherited from SCR_ConfigurableDialogUi
static SCR_ConfigurableDialogUi m_CurrentDialog
 

Additional Inherited Members

- Public Attributes inherited from SCR_ConfigurableDialogUi
ref ScriptInvoker m_OnConfirm = new ScriptInvoker()
 
ref ScriptInvoker m_OnCancel = new ScriptInvoker()
 
ref ScriptInvoker m_OnClose = new ScriptInvoker()
 
ref ScriptInvoker m_OnCloseStart = new ScriptInvoker()
 
ref ScriptInvoker m_OnButtonPressed = new ScriptInvoker()
 
- Static Protected Member Functions inherited from SCR_ConfigurableDialogUi
static SCR_ConfigurableDialogUi CreateByPreset (SCR_ConfigurableDialogUiPreset preset, SCR_ConfigurableDialogUi customDialogObj=null)
 
static Widget GetContentWidget (Widget baseWidget)
 Returns the container in which to place the content layout. Container must be called ContentLayoutContainer.
 

Member Function Documentation

◆ CanSendFeedback()

static bool SCR_FeedbackDialogUI.CanSendFeedback ( )
static

◆ ClearFeedback()

static void SCR_FeedbackDialogUI.ClearFeedback ( )
static

◆ OnAttachFile()

void SCR_FeedbackDialogUI.OnAttachFile ( )
protected

◆ OnCategoryChanged()

void SCR_FeedbackDialogUI.OnCategoryChanged ( SCR_ComboBoxComponent comp = null,
int index = 0 )
protected

◆ OnConfirm()

override void SCR_FeedbackDialogUI.OnConfirm ( )
protected

◆ OnMenuOpen()

override void SCR_FeedbackDialogUI.OnMenuOpen ( SCR_ConfigurableDialogUiPreset preset)

Called last of all, after all the initialization of main element done.

Here you can perform custom initialization.

Implements SCR_ConfigurableDialogUi.

◆ OnMenuShow()

override void SCR_FeedbackDialogUI.OnMenuShow ( )

◆ OnTextChange()

void SCR_FeedbackDialogUI.OnTextChange ( string text)
protected

◆ OnWriteModeLeaveInternal()

void SCR_FeedbackDialogUI.OnWriteModeLeaveInternal ( string text)
protected

◆ OpenFeedbackDialog()

static SCR_FeedbackDialogUI SCR_FeedbackDialogUI.OpenFeedbackDialog ( )
static

◆ SendFeedback()

static void SCR_FeedbackDialogUI.SendFeedback ( string content,
int type,
int category,
bool bPrivate )
static

Member Data Documentation

◆ CATEGORY_NAMES

const LocalizedString SCR_FeedbackDialogUI.CATEGORY_NAMES[CATEGORY_NAMES_COUNT]
static
Initial value:
=
{
"#AR-Feedback_General",
"#AR-Feedback_UI",
"#AR-MainMenu_Editor_Name",
"#AR-Feedback_Character",
"#AR-Feedback_Vehicles",
"#AR-Feedback_Weapons",
"#AR-MainMenu_Multiplayer_Name",
"#AR-MainMenu_Conflict_Name"
}

◆ CATEGORY_NAMES_COUNT

const int SCR_FeedbackDialogUI.CATEGORY_NAMES_COUNT = 8
static

Available categories of feedback.

◆ CATEGORY_TAGS

const string SCR_FeedbackDialogUI.CATEGORY_TAGS[CATEGORY_NAMES_COUNT]
static
Initial value:
=
{
"general",
"ui",
"editor",
"character",
"vehicles",
"weapons",
"multiplayer",
"conflict"
}

◆ FEEDBACK_DIALOG_NAME

const string SCR_FeedbackDialogUI.FEEDBACK_DIALOG_NAME = "feedback_dialog"
staticprotected

◆ FEEDBACK_SEND_TIMEOUT

const float SCR_FeedbackDialogUI.FEEDBACK_SEND_TIMEOUT = 5000
staticprotected

◆ m_bShouldEnableConfirmButton

bool SCR_FeedbackDialogUI.m_bShouldEnableConfirmButton
protected

◆ m_ConfirmButton

SCR_InputButtonComponent SCR_FeedbackDialogUI.m_ConfirmButton
protected

◆ m_FeedbackSentences

ref SCR_FeedbackDialogPredefinedSentences SCR_FeedbackDialogUI.m_FeedbackSentences
protected

◆ m_fLastFeedbackTime

float SCR_FeedbackDialogUI.m_fLastFeedbackTime = -float.MAX
staticprotected

◆ m_LastFeedback

ref FeedbackData SCR_FeedbackDialogUI.m_LastFeedback
staticprotected

◆ m_TOSButton

SCR_InputButtonComponent SCR_FeedbackDialogUI.m_TOSButton
protected

◆ m_Widgets

ref SCR_FeedbackDialogContentWidgets SCR_FeedbackDialogUI.m_Widgets
protected

◆ TOS_BUTTON

const string SCR_FeedbackDialogUI.TOS_BUTTON = "ProfileTOS"
staticprotected

◆ TOS_LINK

const string SCR_FeedbackDialogUI.TOS_LINK = "Link_PrivacyPolicy"
staticprotected

◆ TYPE_NAMES

const LocalizedString SCR_FeedbackDialogUI.TYPE_NAMES[TYPE_NAMES_COUNT]
static
Initial value:
=
{
"#AR-MainMenu_Feedback_Name",
"#AR-Feedback_Issue"
}

◆ TYPE_NAMES_COUNT

const int SCR_FeedbackDialogUI.TYPE_NAMES_COUNT = 2
static

Available types of feedback.

◆ TYPE_TAGS

const string SCR_FeedbackDialogUI.TYPE_TAGS[TYPE_NAMES_COUNT]
static
Initial value:
=
{
"feedback",
"issue"
}

The documentation for this interface was generated from the following file: