Tasharen Entertainment Forum

Support => Other Packages => Topic started by: appsdev on July 09, 2014, 10:01:27 PM

Title: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension
Post by: appsdev on July 09, 2014, 10:01:27 PM
I have imported NGUI.

I get this error. Please advise on what's the best way to resolve this?

Assets/StarlinkUI/Scripts/Generic/UI/UIChat.cs(159,50): error CS1061: Type `UIFont' does not contain a definition for `premultipliedAlpha' and no extension method `premultipliedAlpha' of type `UIFont' could be found (are you missing a using directive or an assembly reference?)
Title: Re: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension
Post by: ArenMook on July 10, 2014, 07:49:55 PM
Change that to be "premultipliedAlphaShader". I guess I renamed that at some point without realizing it would affect the Starlink UI kit. I'll update it this weekend, thanks!
Title: Re: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension
Post by: appsdev on July 10, 2014, 08:38:06 PM
After making the changes mentioned, I get this error.

Assets/StarlinkUI/Scripts/Custom/UI/UIOptionCaps.cs(30,30): error CS0117: `Localization' does not contain a definition for `instance'

Please advise.
Title: Re: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension
Post by: appsdev on July 10, 2014, 09:38:06 PM
I'm not sure if its ok to do this but I'm trying to make it run. so I made the following changes.

in UIOptionCaps.cs

   //mCheck.value = (Localization.instance.currentLanguage == "Caps");
      mCheck.value = (Localization.language == "Caps");

//Localization.instance.currentLanguage = UIToggle.current.value ? "Caps" : "English";
      Localization.language = UIToggle.current.value ? "Caps" : "English";

These errors show after the above changes.

Assets/StarlinkUI/Scripts/Generic/UI/UIWindow.cs(107,49): error CS1061: Type `UIPanel' does not contain a definition for `SetAlphaRecursive' and no extension method `SetAlphaRecursive' of type `UIPanel' could be found (are you missing a using directive or an assembly reference?)
Title: Re: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension
Post by: appsdev on July 10, 2014, 09:46:30 PM
Loaded the game scene.

found the following:
Assets/StarlinkUI/Scripts/Custom/UI/UIOptionWifi.cs(19,24): error CS1061: Type `UIToggle' does not contain a definition for `onStateChange' and no extension method `onStateChange' of type `UIToggle' could be found (are you missing a using directive or an assembly reference?)
Title: Re: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension
Post by: ArenMook on July 10, 2014, 10:00:22 PM
What version of the UI kit are you using and where did you get it? The version that's in the Asset Store should be already updated past all this.
Title: Re: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension
Post by: appsdev on July 11, 2014, 03:33:32 AM
I got it from the project manager.  It's latest version as I was told. May I know how I can check whether its really latest from looking at the files?

It seems that the problem arise when I click on the "TNET Integration" it will overwrite a bunch of files"

If I dont use the TNET Integration,  UICaptionCaps.cs
this line of code is like this "mCheck.value = (Localization.language == "Caps");"

if I run TNET Integration.
That line of codes changes to this "mCheck.value = (Localization.instance.currentLanguage == "Caps");"
This is the error showing.
Title: Re: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension
Post by: ArenMook on July 11, 2014, 07:04:10 PM
I am not sure what TNet Integration package you have there, but if it overwrites the code like that then you don't have the latest. If you send me your OR# I can send you the latest package, or you can try re-downloading it from the Asset Store.
Title: Re: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension
Post by: appsdev on July 11, 2014, 08:09:48 PM
OK I got it updated again it works now.

In direct its only showing the internal IP for both internal and external. Is this my local setting issue ?
Title: Re: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension
Post by: ArenMook on July 11, 2014, 09:29:22 PM
Nah, likely just TNet not able to determine the external IP. As I recall current version of TNet on the Asset Store is a few weeks behind the latest which was updated to handle external IP retrieval to be a lot faster and more reliable. I'll likely put up this updated version sometime this weekend.