Ejemplo n.º 1
0
    void OnGUI()
    {
        if (!m_bInitialized)
        {
            GUILayout.Label("Steamworks is not Initialized");
            return;
        }

        GUILayout.Label("[" + ((int)m_State + 1) + " / " + (int)EGUIState.MAX_STATES + "] " + m_State.ToString());

        switch (m_State)
        {
        case EGUIState.SteamAppList:
            AppListTest.RenderOnGUI();
            break;

        case EGUIState.SteamApps:
            AppsTest.RenderOnGUI();
            break;

        case EGUIState.SteamClient:
            ClientTest.RenderOnGUI();
            break;

        case EGUIState.SteamController:
            ControllerTest.RenderOnGUI();
            break;

        case EGUIState.SteamFriends:
            FriendsTest.RenderOnGUI();
            break;

        case EGUIState.SteamHTMLSurface:
            HTMLSurfaceTest.RenderOnGUI();
            break;

        case EGUIState.SteamHTTP:
            HTTPTest.RenderOnGUI();
            break;

        case EGUIState.SteamInventory:
            InventoryTest.RenderOnGUI();
            break;

        case EGUIState.SteamMatchmaking:
            MatchmakingTest.RenderOnGUI();
            break;

        case EGUIState.SteamMatchmakingServers:
            MatchmakingServersTest.RenderOnGUI();
            break;

        case EGUIState.SteamMusic:
            MusicTest.RenderOnGUI();
            break;

        case EGUIState.SteamMusicRemote:
            MusicRemoteTest.RenderOnGUI();
            break;

        case EGUIState.SteamNetworking:
            NetworkingTest.RenderOnGUI();
            break;

        case EGUIState.SteamParentalSettings:
            ParentalSettingsTest.RenderOnGUI();
            break;

        case EGUIState.SteamRemoteStorage:
            RemoteStorageTest.RenderOnGUI();
            break;

        case EGUIState.SteamScreenshots:
            ScreenshotsTest.RenderOnGUI();
            break;

        case EGUIState.SteamUGC:
            UGCTest.RenderOnGUI();
            break;

        case EGUIState.SteamUser:
            UserTest.RenderOnGUI();
            break;

        case EGUIState.SteamUserStatsTest:
            UserStatsTest.RenderOnGUI();
            break;

        case EGUIState.SteamUtils:
            UtilsTest.RenderOnGUI();
            break;

        case EGUIState.SteamVideo:
            VideoTest.RenderOnGUI();
            break;
        }
    }
Ejemplo n.º 2
0
    void OnGUI()
    {
        if (!m_bInitialized)
        {
            GUILayout.Label("Steamworks is not Initialized");
        }

        GUILayout.Label("[" + ((int)m_State + 1) + " / " + (int)EGUIState.MAX_STATES + "] " + m_State.ToString());

        switch (m_State)
        {
        case EGUIState.SteamAppList:
            AppListTest.RenderOnGUI();
            break;

        case EGUIState.SteamApps:
            AppsTest.RenderOnGUI();
            break;

        case EGUIState.SteamClient:
            ClientTest.RenderOnGUI();
            break;

        case EGUIState.SteamController:
            if (m_bControllerInitialized)
            {
                ControllerTest.RenderOnGUI();
            }
            break;

        case EGUIState.SteamFriends:
        case EGUIState.SteamFriendsPg2:
            FriendsTest.RenderOnGUI(m_State);
            break;

        case EGUIState.SteamHTTP:
            HTTPTest.RenderOnGUI();
            break;

        case EGUIState.SteamMatchmaking:
            MatchmakingTest.RenderOnGUI();
            break;

        case EGUIState.SteamMatchmakingServers:
            MatchmakingServersTest.RenderOnGUI();
            break;

        case EGUIState.SteamMusic:
            MusicTest.RenderOnGUI();
            break;

        case EGUIState.SteamRemoteStorage:
        case EGUIState.SteamRemoteStoragePg2:
            RemoteStorageTest.RenderOnGUI(m_State);
            break;

        case EGUIState.SteamScreenshots:
            ScreenshotsTest.RenderOnGUI();
            break;

        case EGUIState.SteamUGC:
            UGCTest.RenderOnGUI();
            break;

        case EGUIState.SteamUnifiedMessages:
            UnifiedMessagesTest.RenderOnGUI();
            break;

        case EGUIState.SteamUser:
            UserTest.RenderOnGUI();
            break;

        case EGUIState.SteamUserStatsTest:
        case EGUIState.SteamUserStatsTestPg2:
            UserStatsTest.RenderOnGUI(m_State);
            break;

        case EGUIState.SteamUtils:
            UtilsTest.RenderOnGUI();
            break;
        }
    }