Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sachaM

Pages: [1]
1
NGUI 3 Support / Resizing scrollbar RT
« on: December 12, 2012, 02:31:35 AM »
Hello,
I did a window that contains severals widgets and make the window resizable. So far so good but the scroll bar give me an issue:
i can extend its size but reduct it doesn't work. The foreground sprite stay at the previous size.

Is there a proper way to resize it beside forcing its transform ?

Thanks

2
NGUI 3 Support / Re: SlicedSprite in UIbutton not updating
« on: December 09, 2012, 02:43:49 PM »
yes, the panel is clipped one  with a dragable panel and the usual parented scrollbar.
The release used is the last one.

I'm trying to do something like a classic tab panel with tabs added on demand.


3
NGUI 3 Support / Re: SlicedSprite in UIbutton not updating
« on: December 09, 2012, 12:59:07 PM »
i did it on both : background (slicedSprite)  and Button itself (UIImageButton) :

_icon.spriteName=_on;
_button.normalSprite=_on;
_button.hoverSprite=_on;
_button.pressedSprite=_on;


4
NGUI 3 Support / Re: Script conversion to use with NGUI.
« on: December 09, 2012, 07:41:12 AM »
 ScorePoints.text=scorePoints.ToString();
BallsRemain .text=lives.ToString();

might do the trick

5
NGUI 3 Support / SlicedSprite in UIbutton not updating
« on: December 09, 2012, 06:27:16 AM »
Hello
I did a classic button (unbutton) and changed its textures manually (swapping the pressed and normal one) by script to signal an event.
i'm using the xx.spritename="my texture".

The inspector shows the changes correctly but visually nothing happens until the mouse goes hover the button.

i tried a forced panel update , xx.markaschanged but nothing works.

I guess i missed something somewhere...

thanks for your help


6
NGUI 3 Support / SubPanel not rendered
« on: November 30, 2012, 10:39:48 AM »
Hi,
I'm doing a window that contains several elements, one of them is a subpnal containing a list.
Before integrating it, i did a test and all went fine.

I duplicate my test into my working window and ... that part is not rendered anymore and i can't figure it out why.
Everything under the subpanel are *only* rendered in scene mode.

I might missed something obvious but can't figure it out...

The window contains several UIpanel(s) but can't find anything wrong.

Thanks for your ideas...

7
NGUI 3 Support / Re: Window icon like "close,Hide,help" problem
« on: November 24, 2012, 02:21:32 AM »
Thanks arenmook but that's not the problem i have :

I try to have 3 icons packed together, not one, and in this case anchored both of them to the right side with offset give the unwanted behaviour. I want to have the first icon anchored to the right and the next two spaced with xx pixels from the first one, xx is a fixed space.

Maybe i should rephrase my question: Is there a way to create a container that will keep the children widgets sticked together ?

thanks

8
NGUI 3 Support / Window icon like "close,Hide,help" problem
« on: November 23, 2012, 07:06:28 AM »
Hello,
I try to replicate the classic "top window" toolbar with the 3 icons: hide/show,close and info and ran into a positioning problem when i resize the main window: They don't stick to their locations.

TopWindow
!
+-TopWindowBackgound
+-Grid
   !--Icon1 (gameobject)
        +background
   !--Icon2
         +background
They are correctly aligned but as soon as i anchor the Grid component, all the icons jumps out of screen even if the anchor refers to topwindow background.

What i want is having them staying at the same place with the same space between them, whatever the window's size is.

I guess i missed something somewhere hehe...

thanks
 

Pages: [1]