Welcome,
Guest
. Please
login
or
register
.
September 11, 2024, 07:15:18 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
Other Packages
»
`UIFont' does not contain a definition for `premultipliedAlpha' and no extension
« previous
next »
Print
Pages: [
1
]
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
`UIFont' does not contain a definition for `premultipliedAlpha' and no extension
«
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?)
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension
«
Reply #1 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!
Logged
appsdev
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 10
Re: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension
«
Reply #2 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.
Logged
appsdev
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 10
Re: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension
«
Reply #3 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?)
Logged
appsdev
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 10
Re: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension
«
Reply #4 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?)
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension
«
Reply #5 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.
Logged
appsdev
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 10
Re: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension
«
Reply #6 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.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension
«
Reply #7 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.
Logged
appsdev
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 10
Re: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension
«
Reply #8 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 ?
«
Last Edit: July 11, 2014, 08:29:35 PM by appsdev
»
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: `UIFont' does not contain a definition for `premultipliedAlpha' and no extension
«
Reply #9 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.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
Other Packages
»
`UIFont' does not contain a definition for `premultipliedAlpha' and no extension