Author Topic: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension  (Read 6324 times)

appsdev

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
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?)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
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!

appsdev

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
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.

appsdev

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
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?)

appsdev

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
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?)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
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.

appsdev

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
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.

appsdev

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
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 ?
« Last Edit: July 11, 2014, 08:29:35 PM by appsdev »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
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.