Author Topic: UIButton WP8 Error  (Read 2214 times)

brunoroma

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
UIButton WP8 Error
« on: May 22, 2014, 05:26:29 AM »

release 3.5.8


Failed to call function gotClickMissionChoosePanel of class BBPostScore
Calling function gotClickMissionChoosePanel with no parameters but the function requires 1.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIButton WP8 Error
« Reply #1 on: May 22, 2014, 03:57:32 PM »
So you're calling a function passing no parameters, when in fact the function has a parameter.

brunoroma

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
Re: UIButton WP8 Error
« Reply #2 on: May 23, 2014, 11:58:46 AM »
I do not call anything is UIButton onClick notify works perfectly on all platforms except WP8 and WinStore
I had to use legacy ButtonMessage.

I also got this error message when compiling for WINStore

Assets\NGUI\Scripts\Internal\DataNode.cs(727,12): error CS1061: 'System.Type' does not contain a definition for 'IsEnum' and no extension method 'IsEnum' accepting a first argument of type

I advise you to avoid compatibility with WP8 and WinStore


Others Errors

Incorrectly unloaded MonoBehaviour class 'UIButtonMessage' in prefab 'Checkbox_EASY' during GarbageCollectUnusedAssets.
The Object will be reloaded from disk, to fix this properly keep a reference to the MonoBehaviour directly instead of the game object or other component.
 
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/PlatformDependent/WinRT/GarbageCollectSharedAssetsWinRT.cpp Line: 658)

Incorrectly unloaded MonoBehaviour class 'UIToggle' in prefab 'Checkbox_EASY' during GarbageCollectUnusedAssets.
The Object will be reloaded from disk, to fix this properly keep a reference to the MonoBehaviour directly instead of the game object or other component.
 
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/PlatformDependent/WinRT/GarbageCollectSharedAssetsWinRT.cpp Line: 658)

Incorrectly unloaded MonoBehaviour class 'UIPanel' in prefab 'Panel' during GarbageCollectUnusedAssets.
The Object will be reloaded from disk, to fix this properly keep a reference to the MonoBehaviour directly instead of the game object or other component.
 
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/PlatformDependent/WinRT/GarbageCollectSharedAssetsWinRT.cpp Line: 658)

Incorrectly unloaded MonoBehaviour class 'UIButton' in prefab 'ButtonD' during GarbageCollectUnusedAssets.
The Object will be reloaded from disk, to fix this properly keep a reference to the MonoBehaviour directly instead of the game object or other component
« Last Edit: May 23, 2014, 02:23:45 PM by brunoroma »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIButton WP8 Error
« Reply #3 on: May 23, 2014, 04:47:05 PM »
DataNode doesn't exist in NGUI anymore. It was moved to TNet. Please follow upgrade instructions when updating NGUI. Check the readme file.

P.S. I just noticed you're still on 3.5.8? You need to update to the latest.