コード例 #1
0
 public override void OnEnter()
 {
     if (isParentalLockEnabled != null)
     {
         isParentalLockEnabled.Value = (bool)SteamParentalSettings.BIsParentalLockEnabled();
     }
     if (isParentalLockLocked != null)
     {
         isParentalLockLocked.Value = (bool)SteamParentalSettings.BIsParentalLockLocked();
     }
     Finish();
 }
コード例 #2
0
 public override void OnEnter()
 {
     if (isAppBlocked != null)
     {
         isAppBlocked.Value = (bool)SteamParentalSettings.BIsAppBlocked((AppId_t)Convert.ToUInt32(appID.Value));
     }
     if (isAppInBlockList != null)
     {
         isAppInBlockList.Value = (bool)SteamParentalSettings.BIsAppInBlockList((AppId_t)Convert.ToUInt32(appID.Value));
     }
     Finish();
 }
コード例 #3
0
 public override void OnEnter()
 {
     if (isAppBlocked != null)
     {
         isAppBlocked.Value = SteamParentalSettings.BIsFeatureBlocked(parentalFeature);
     }
     if (isAppInBlockList != null)
     {
         isAppInBlockList.Value = SteamParentalSettings.BIsFeatureInBlockList(parentalFeature);
     }
     Finish();
 }
コード例 #4
0
    public void RenderOnGUI()
    {
        GUILayout.BeginVertical("box");
        m_ScrollPos = GUILayout.BeginScrollView(m_ScrollPos, GUILayout.Width(Screen.width - 215), GUILayout.Height(Screen.height - 33));

        GUILayout.Label("BIsParentalLockEnabled() : " + SteamParentalSettings.BIsParentalLockEnabled());

        GUILayout.Label("BIsParentalLockLocked() : " + SteamParentalSettings.BIsParentalLockLocked());

        GUILayout.Label("BIsAppBlocked(SteamUtils.GetAppID()) : " + SteamParentalSettings.BIsAppBlocked(SteamUtils.GetAppID()));

        GUILayout.Label("BIsAppInBlockList(SteamUtils.GetAppID()) : " + SteamParentalSettings.BIsAppInBlockList(SteamUtils.GetAppID()));

        GUILayout.Label("BIsFeatureBlocked(EParentalFeature.k_EFeatureTest) : " + SteamParentalSettings.BIsFeatureBlocked(EParentalFeature.k_EFeatureTest));

        GUILayout.Label("BIsFeatureInBlockList(EParentalFeature.k_EFeatureTest) : " + SteamParentalSettings.BIsFeatureInBlockList(EParentalFeature.k_EFeatureTest));

        GUILayout.EndScrollView();
        GUILayout.EndVertical();
    }