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 - joonyboy

Pages: [1]
1
NGUI 3 Support / Re: sometimes some ui-sprite got wrong position
« on: June 18, 2017, 08:30:26 PM »
oh I didn't think about that, alpha

I should try that

thanks

2
NGUI 3 Support / sometimes some ui-sprite got wrong position
« on: June 18, 2017, 08:03:44 PM »
when active/deactive panel (include some sprites) some elements sometimes got wrong position.

I already set anchors with parent object.

it always occured in mobile device

how can i fix it

anyone please give me a hand :'(

3
NGUI 3 Support / back to first state in Toggle group
« on: April 11, 2017, 02:51:20 AM »
When quit toggle group. I want to reset toggle group to the first.

ex. A, B, C Panel with Toggle group

A starting state is true

I Clicked B Panel.

When quit and access again, I want to activate A Panel which starting state is true.

I searched last posts, but hard to find solution

I really hope anyone could help me...

4
Last time there was no problem to use EventDelegate

but today I don't know why  EventDelegate.parameters[0] returns null reference exception.

The code with problem is this.

void OnEnable() {
        removeAllList();
        Group[] searchedGroups = controller.groupStore.searchedGroups;
        int length = searchedGroups.Length;
        if(length == 0) {
            emptyMessage.SetActive(true);
            return;
        }

        for(int i=0; i<length; i++) {
            GameObject item = Instantiate(container);

            item.transform.SetParent(grid.transform);
            item.transform.localPosition = Vector3.zero;
            item.transform.localScale = Vector3.one;

            item.GetComponent<GroupIndex>().id = searchedGroups.id;
            item.transform.Find("LocationLabel").GetComponent<UILabel>().text = searchedGroups.locationDistrict + " " + searchedGroups.locationCity;
            item.transform.Find("GroupNameLabel").GetComponent<UILabel>().text = searchedGroups.name;
            item.transform.Find("MemberCountLabel").GetComponent<UILabel>().text = "멤버 " + searchedGroups.membersCount + "명";

            EventDelegate addEvent = new EventDelegate(this, "addEvent_test");

            EventDelegate.Parameter param = new EventDelegate.Parameter();
            param.obj = item;
            param.field = "Index";
            addEvent.parameters[0] = param;

            GameObject tmp = item.transform.Find("GotoDetailBtn").gameObject;

            EventDelegate.Add(tmp.GetComponent<UIButton>().onClick, addEvent);
        }
    }

    public void addEvent_test() {

    }

please anyone could help me. thanks.

Pages: [1]