Search found 14 matches

  • 1
  • 2
by lboldt
19 Aug 2013, 20:02
Forum: General Discussion
Replies: 7
Views: 3930

Re: ScrollViewer / TextBlock bug?

I have no idea why, but I've narrowed it down to having this ABOVE the dialog xaml code in the grid is causing it...
<WrapPanel>
    <TextBlock FontSize="20" Width="40">Test:</TextBlock>  
</WrapPanel>
Can you add that and see if you can reproduce it?
by lboldt
19 Aug 2013, 16:56
Forum: General Discussion
Replies: 6
Views: 4265

Re: Create button with image using C# in Unity

Nice, thanks! :-)
by lboldt
19 Aug 2013, 16:45
Forum: General Discussion
Replies: 7
Views: 3930

Re: ScrollViewer / TextBlock bug?

I downloaded the latest release, deleted all the old files and imported.

Still, I get same error.
scrollviewer.jpg
scrollviewer.jpg (102.32 KiB) Viewed 3818 times
Also, I get GUI fine in game view, but with newest release when I build & run, I get no GUI and FPS is veeeery low, but works fine in game view aside from the scrollviewer bug.
by lboldt
19 Aug 2013, 15:45
Forum: General Discussion
Replies: 7
Views: 3930

Re: ScrollViewer / TextBlock bug?

I'm running on a 1.0.2 preview I got from Jesus. Asset Store in Unity says latest is 1.0.1? Is 1.0.2 final? How do I get it to update in the Asset Store?
by lboldt
19 Aug 2013, 15:42
Forum: General Discussion
Replies: 6
Views: 4265

Re: Create button with image using C# in Unity

I see, that should work nicely.

I'm also struggelig with something that I thought was simple, setting TextBlock foreground color. It asks for a Noesis.Brush, but how do you specify a color in the brush for the foreground?

Thanks!
by lboldt
19 Aug 2013, 12:54
Forum: General Discussion
Replies: 6
Views: 4265

Re: Create button with image using C# in Unity

I have a "group" GUI where each person added to the group GUI ends up as a button with an avatar and health bar.

These avatars are placed in a "Resources" folder in Unity. So the buttons with avatar and healthbar needs to be added at runtime I thought?
by lboldt
19 Aug 2013, 01:21
Forum: General Discussion
Replies: 7
Views: 3930

ScrollViewer / TextBlock bug?

I'm prototyping a general dialog with the following XAML: <!-- Dialog --> <Border Name="dialogBrdr" Style="{StaticResource DialogBorder}"> <StackPanel Name="dialogPnl" Style="{StaticResource DialogPanel}"> <Label Name="dialogLbl" Style="{StaticR...
by lboldt
18 Aug 2013, 14:29
Forum: General Discussion
Replies: 6
Views: 3894

Re: Best way to create a list of text updates that fades out

I've converted the above example to a mix between XAML and C# within Unity so I can display the correct values etc. The cool thing about storyboards is that you can reuse it and "apply it" to any control that supports it. I'm not an expert here, but this is how I did it (slightly changed f...
by lboldt
17 Aug 2013, 02:23
Forum: General Discussion
Replies: 6
Views: 3894

Re: Best way to create a list of text updates that fades out

Nice one!

That was pretty much what I was looking for. Lots going on here that I need to read through carefully :-)

For others browsing, copy and paste the XAML into Kaxaml to see the nice effects!

Thanks for the effort sfernandez, hopefully others will benefit from this too!
by lboldt
17 Aug 2013, 01:28
Forum: General Discussion
Replies: 6
Views: 4265

Create button with image using C# in Unity

I'm trying to programatically create <Button> <Button.Template> <ControlTemplate> <Image Source="source.png"/> </ControlTemplate> </Button.Template> </Button> Button b = new Button(); b.SetTemplate()? Do I need to use ControlTemplate and ImageSource in Image.SetSource? Could you provide an...
  • 1
  • 2