protected override void BindProperty() { base.BindProperty(); //ToDo handler.BindProperty(() => { Vector2 pos = Tcontext.curSelectPos; float x = pos.x / (float)GamePanelViewModel.MapSize; float y = pos.y / (float)GamePanelViewModel.MapSize; if (Tpanel.slider_pox_x.value != x) { Tpanel.slider_pox_x.value = x; } if (Tpanel.slider_pox_y.value != y) { Tpanel.slider_pox_y.value = y; } Tpanel.SetKuang(pos); }) .BindProperty(() => { var tx = Tcontext.tx; Tpanel.map.texture = tx; }) .BindProperty(() => { Tpanel.input_chat.text = Tcontext.chat; }) .BindProperty(() => { Tpanel.input_size.text = Tcontext.pan_size.ToString(); }); }
public void hidePanel() { Qpanel.Hide(); Tpanel.Hide(); Cpanel.Hide(); Dpanel.Hide(); Wpanel.Hide(); }
protected override void BindProperty() { base.BindProperty(); handler.BindProperty(() => { string text = Tcontext.text; Tpanel.NetMessage(text); }) .BindProperty(() => { Tpanel.ErrMessage(Tcontext.err_text); }) .BindProperty(() => { Tpanel.Danmu(Tcontext.danmu); }); //ToDo }
private void transferButton_Click(object sender, EventArgs e) { hideButton(); Tpanel.Show(); }