Example #1
0
    // 스테이터스 창을 만든다.
    public void             createStatusWindows()
    {
        int local_gindex = PartyControl.get().getLocalPlayer().control.global_index;

        int friend_count = PartyControl.get().getFriendCount();

        int[] friend_gindex = new int[friend_count];

        for (int i = 0; i < friend_count; i++)
        {
            friend_gindex[i] = PartyControl.get().getFriend(i).control.global_index;
        }

        // 스테이터스 창   로컬 플레이어용.

        GameObject go;

        go = GameObject.Instantiate(this.status_window_local_prefab) as GameObject;

        this.stat_win_local = go.GetComponent <StatusWindowLocal>();

        this.stat_win_local.face_icon_texture    = this.face_icon_textures[local_gindex];
        this.stat_win_local.cookie_icon_textures = this.cookie_icon_textures;
        this.stat_win_local.number_textures      = this.number_textures;
        this.stat_win_local.lace_texture         = this.lace_texture;
        this.stat_win_local.create();
        this.stat_win_local.setPosition(new Vector2(640.0f / 2.0f - 70.0f, 480.0f / 2.0f - 70.0f));

        // 스테이터스 창 리포트 플레이어용.


        this.stat_wins_net = new StatusWindowNet[friend_count];

        Vector2 position = new Vector2(640.0f / 2.0f - 60.0f, 60.0f);

        for (int i = 0; i < friend_count; i++)
        {
            go = GameObject.Instantiate(this.status_window_net_prefab) as GameObject;

            StatusWindowNet stat_win_net = go.GetComponent <StatusWindowNet>();

            stat_win_net.face_icon_texture    = this.face_icon_textures[friend_gindex[i]];
            stat_win_net.cookie_icon_textures = this.cookie_icon_textures;
            stat_win_net.lace_texture         = this.lace_texture;
            stat_win_net.create();

            stat_win_net.setPosition(position);

            this.stat_wins_net[i] = stat_win_net;

            position.y -= 96.0f;
        }
    }
Example #2
0
	// 스테이터스 창을 만든다.
	public void		createStatusWindows()
	{
		int		local_gindex = PartyControl.get().getLocalPlayer().control.global_index;

		int		friend_count = PartyControl.get().getFriendCount();

		int[]	friend_gindex = new int[friend_count];

		for(int i = 0;i < friend_count;i++) {

			friend_gindex[i] = PartyControl.get().getFriend(i).control.global_index;
		}

		// 스테이터스 창   로컬 플레이어용.

		GameObject	go;

		go = GameObject.Instantiate(this.status_window_local_prefab) as GameObject;

		this.stat_win_local = go.GetComponent<StatusWindowLocal>();

		this.stat_win_local.face_icon_texture    = this.face_icon_textures[local_gindex];
		this.stat_win_local.cookie_icon_textures = this.cookie_icon_textures;
		this.stat_win_local.number_textures      = this.number_textures;
		this.stat_win_local.lace_texture         = this.lace_texture;
		this.stat_win_local.create();
		this.stat_win_local.setPosition(new Vector2(640.0f/2.0f - 70.0f, 480.0f/2.0f - 70.0f));

		// 스테이터스 창 리포트 플레이어용.


		this.stat_wins_net = new StatusWindowNet[friend_count];

		Vector2		position = new Vector2(640.0f/2.0f - 60.0f, 60.0f);

		for(int i = 0;i < friend_count;i++) {

			go = GameObject.Instantiate(this.status_window_net_prefab) as GameObject;
	
			StatusWindowNet	stat_win_net = go.GetComponent<StatusWindowNet>();
	
			stat_win_net.face_icon_texture    = this.face_icon_textures[friend_gindex[i]];
			stat_win_net.cookie_icon_textures = this.cookie_icon_textures;
			stat_win_net.lace_texture         = this.lace_texture;
			stat_win_net.create();

			stat_win_net.setPosition(position);

			this.stat_wins_net[i] = stat_win_net;

			position.y -= 96.0f;
		}
	}