Beispiel #1
0
 public override void OnGUI()
 {
     if (IsNodeScreen)
     {
         SetColumnNodeA();
         SetColumnNodeB();
     }
     else
     {
         SetColumnA();
         SetColumnB();
         SetColumnC();
     }
     GUI.Label(BigUI.GetRect(0, 3), Ag.ScrnLog);
     GUI.Label(BigUI.GetRect(0, 4), Ag.ScrnRcv);
 }
    void OnGUI()
    {
        muiCol = 0;
        muiRow = 1;
        int colN = 0, colEA;

        #if UNITY_IPHONE
        string iapMsg = "N : " + AgStt.mIAP.arrProduct.Count + "  Psble : " + AgStt.mIAP.CanMakePayment();
        GUI.Label(myGUI.GetRect(muiCol, muiRow++), iapMsg);

        //Rect iap = myGUI.GetRect (muiCol, muiRow++);
        colN  = 0;
        colEA = 4;
        if (GUI.Button(myGUI.GetRect(muiCol, muiRow++), "IAP:Init"))      //
        {
            AgStt.mIAP.ProductRequest();
        }
        if (GUI.Button(myGUI.GetRect(muiCol, muiRow++), "cash0030"))      //
        {
            AgStt.mIAP.PurchaseProduct("cash0030");
        }
#endif
    }
    public override void OnGUI()
    {
        Rect curRUp = BotGUI.GetRect(0, 10);  // Bot Test Tool...  Skip Tutorial
        int  colN = 2, colEA = 5;

        /*
         * if (GUI.Button (BotGUI.DivideRect (curRUp, colEA, colN++), Ag.BotTestSetting + " : B : " + Ag.mVirServer.maiGradeOfBot)) {  // Update
         *  Ag.BotTestSetting++;
         *  Ag.BotTestSetting = (Ag.BotTestSetting > 4) ? -1 : Ag.BotTestSetting;
         * }
         * if (GUI.Button (BotGUI.DivideRect (curRUp, colEA, colN++), "Tutor")) {
         *  PreviewLabs.PlayerPrefs.SetBool ("DidTutorial", true);
         *  PreviewLabs.PlayerPrefs.Flush ();
         * }
         */


        if (!(Ag.mIsDebug && AgStt.DebugOnDevice))
        {
            return;
        }

        muiCol           = 0;
        muiRow           = 0;
        GUI.contentColor = Color.yellow;

        int idx = 0;

        GUI.Button(myGUI.GetRect(muiCol++, muiRow), AgStt.GetLogString(idx++, true));
        GUI.Button(myGUI.GetRect(muiCol, muiRow), AgStt.GetLogString(idx, true));
        idx    = muiCol = 0;
        muiRow = 1;
        GUI.Button(myGUI.GetRect(muiCol, muiRow++), AgStt.GetLogString(idx++));
        GUI.Button(myGUI.GetRect(muiCol, muiRow++), AgStt.GetLogString(idx++));
        GUI.Button(myGUI.GetRect(muiCol, muiRow++), AgStt.GetLogString(idx++));
        GUI.Button(myGUI.GetRect(muiCol, muiRow++), AgStt.GetLogString(idx++));
        muiCol = muiRow = 1;
        GUI.Button(myGUI.GetRect(muiCol, muiRow++), AgStt.GetLogString(idx++));
        GUI.Button(myGUI.GetRect(muiCol, muiRow++), AgStt.GetLogString(idx++));
        GUI.Button(myGUI.GetRect(muiCol, muiRow++), AgStt.GetLogString(idx++));
        GUI.Button(myGUI.GetRect(muiCol, muiRow++), AgStt.GetLogString(idx++));
    }
    void OnGUI()
    {
        /*
         * float yPos = 5.0f;
         * float xPos = 5.0f;
         * float width = ( Screen.width >= 800 || Screen.height >= 800 ) ? 320 : 160;
         * float height = ( Screen.width >= 800 || Screen.height >= 800 ) ? 80 : 40;
         * float heightPlus = height + 10.0f;
         */
        //----------test

        int col = 0, row = 1;

        GUI.Label(myGUI.GetRect(col, row++), mCheckedBillingService.ToString());


        // GUI.Label(new Rect( xPos, yPos, width, height ), mCheckedBillingService.ToString() );
        GUI.Label(myGUI.GetRect(col, row++), "billingService" + mCheckedBillingService.ToString());
        GUI.Label(myGUI.GetRect(col, row++), "mBtnFlag" + mBtnFlag);
        //GUI.Label(myGUI.GetRect(col, row++),"mFbstate"+Ag.mFBState );
        GUI.Label(myGUI.GetRect(col, row++), "ServerLogin" + Ag.mgServerLoggedIn);
        GUI.Label(myGUI.GetRect(col, row++), Ag.mySelf.mGold.ToString());
        //GUI.Label(myGUI.GetRect(col, row++),Ag.mDebugStr );
        if (GUI.Button(myGUI.GetRect(col, row++), "don"))
        {
            //Ag.mIapPrice = 1000;
            //Ag.mIAP.mFileIO.mReceipt = " This is Receipt ... F**k you...   "; //Ag.mReceiptSample;
        }



        /*
         * if( GUI.Button( myGUI.GetRect(col, row++), "Initialize IAB" ) ){
         *   var key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgvPX/r/0ovyIfx5cPa45s+rJEJkEWAmna+zvkRpp+YU/mcXhUiXNBUDkivtQC6hwW6r9T4huggEulBIyH6CU9NjkxQX34MUEuyEHSAUjTByo56HmKbDyg6qcUqNzP20naYiWtYup12QOc5XmI+knTY9dviJAwDlAvQRbJHKYDWIZ5Wz0sFURnkcDMg3AFZN0DXgrUUYrvpJLeO3HnvunOEqi22t86oBmUyhF2jU+vi7p4mKcXaGhNmrFxreJmBfiFilrVdQclSXuuGSLEutv4QI+LTtutMC/Grp7zORiqonbFpjZh34vDl7jsqMWkguE3eH3mdT8DK5hzUJA3K/4tQIDAQAB";
         *   IABAndroid.init( key );
         * }
         * col = row = 1;
         *
         * if( GUI.Button( myGUI.GetRect(col, row++), "Test Purchase" ) ){
         *   IABAndroid.purchaseProduct( "android.test.purchased", "my magical payload of extra data" );
         * }
         *
         *
         * if( GUI.Button(myGUI.GetRect(col, row++), "Test Refund" ) ){
         *   IABAndroid.purchaseProduct( "android.test.refunded" );
         * }
         *
         *
         *
         * if( GUI.Button( myGUI.GetRect(col, row++), "Test Unavailable Item" ) ){
         *   IABAndroid.purchaseProduct( "android.test.item_unavailable" );
         * }
         *
         *
         * if( GUI.Button( myGUI.GetRect(col, row++), "Restore Transactions" ) ){
         *   IABAndroid.restoreTransactions();
         * }
         *
         * if( GUI.Button( myGUI.GetRect(col, row++), "Purchase Real Product" ) ){
         *  Ag.mIsSuspendOnPurpose = true;
         *  IABAndroid.purchaseProduct( "com.appsgraphy.psykickbattle.coin001000d" );
         * }
         *
         * if( GUI.Button( myGUI.GetRect(col, row++), "Enable High Details Logs" ) ){
         *   IABAndroid.enableLogging( true );
         *   Debug.LogWarning( "YOU HAVE ENABLED HIGH DETAIL LOGS. DO NOT DISTRIBUTE THE GENERATED APK PUBLICLY. IT WILL DUMP SENSITIVE INFORMATION TO THE CONSOLE!" );
         * }
         *
         * if( GUI.Button( myGUI.GetRect(col, row++), "Quit and Crash App (for testing)" ) ){
         *  IABAndroid.stopBillingService();
         *
         * }
         */
    }