Example #1
0
 public void button_press(int tag)
 {
     if (tag == 11010 || tag == 11012)
     {
         ShowWidnow(false);
     }
     else if (tag == 11013)
     {
         m_sldNumber.set_value(m_sldNumber.value() - 0.1);
         //pakcj theApp.SetMusicVolume(m_sldNumber.value());
     }
     else if (tag == 11014)
     {
         m_sldNumber.set_value(m_sldNumber.value() + 0.1);
         //pakcj theApp.SetMusicVolume(m_sldNumber.value());
     }
     else if (tag == 11016)
     {
         m_sldNumber1.set_value(m_sldNumber1.value() - 0.1);
         //pakcj theApp.SetSoundVolume(m_sldNumber1.value());
     }
     else if (tag == 11017)
     {
         m_sldNumber1.set_value(m_sldNumber1.value() + 0.1);
         //pakcj theApp.SetSoundVolume(m_sldNumber1.value());
     }
 }
Example #2
0
        //C++ TO C# CONVERTER TODO TASK: The implementation of the following method could not be found:
        //	public void Dispose();

        public void button_press(int tag)
        {
            int nMaxFishGold = m_nMaxBuyFishGold;

            int nSetp = nMaxFishGold / 100;

            if (10013 == tag)
            {
                m_nFishGold -= nSetp;
                if (m_nFishGold < nSetp)
                {
                    m_nFishGold = nSetp;
                }

                SetFishGold(m_nFishGold);
                SetGameGold(m_nFishGold * m_lCellScore);
                double dSetp = (nSetp == 0) ? 0.00 : (double)(m_nFishGold - nSetp) / (nSetp * 99);
                m_sldNumber.set_value(dSetp);
            }
            else if (10014 == tag)
            {
                m_nFishGold += nSetp;
                if (m_nFishGold > nMaxFishGold)
                {
                    m_nFishGold = nMaxFishGold;
                }

                SetFishGold(m_nFishGold);
                SetGameGold(m_nFishGold * m_lCellScore);
                double dSetp = (nSetp == 0) ? 0.00 : (double)(m_nFishGold - nSetp) / (nSetp * 99);
                m_sldNumber.set_value(dSetp);
            }
            else if (10011 == tag)
            {
                m_nFishGold = nMaxFishGold;

                SetFishGold(m_nFishGold);
                SetGameGold(m_nFishGold * m_lCellScore);
                double dSetp = (nSetp == 0) ? 0.00 : (double)(m_nFishGold - nSetp) / (nSetp * 99);
                m_sldNumber.set_value(dSetp);
            }
            else if (10010 == tag)
            {
                ShowWidnow(false);
            }
            else if (10012 == tag)
            {
                CMD_C_Buy_Bullet BuyBullet = new CMD_C_Buy_Bullet();
                BuyBullet.dwCount = (int)m_nFishGold;

                CGameScene pGameScene = (CGameScene)parent();
                pGameScene.GetClientKernel().SendSocketData(FishDefine.SUB_C_BUY_BULLET, BuyBullet);
                m_bSendMessage = true;
                ShowWidnow(false);
            }
        }
Example #3
0
 public void set_value(double fValue)
 {
     m_sldNumber.set_value(fValue);
     //pakcj theApp.SetMusicVolume(fValue);
 }