public void DisableTalk() { ButtonTalk.ModifyBg(Gtk.StateType.Normal, ColorPicker.Orange); talking_ = false; Console.WriteLine("Talk Disabled [OFF]"); }
private void Initialize() { LoadDefaultControls(); watchController_ = new WatchController(this); DownloadWatchData(); helper_ = new DrawingAreaMapHelper(DrawingAreaMap); UIHandler_ = new UIHandler(this); UIHandler_.Initialize(); // TODO: remove event ? DrawingAreaMap.ExposeEvent += (o, args) => { UIHandler_.ClearDrawingArea(); UIHandler.DrawMapPoint(ColorPicker.Blue, (helper_.WindowWidth / 2) - 2, (helper_.WindowHeight / 2) - 2, 8, 8); }; ButtonTalk.Clicked += (sender, e) => { ButtonTalk.ModifyBg(StateType.Normal, ColorPicker.Red); talking_ = !talking_; if (talking_) { DisableTalk(); } else { EnableTalk(); } }; Add(DrawingAreaMap); Show(); }
public void EnableTalk() { ButtonTalk.ModifyBg(Gtk.StateType.Normal, ColorPicker.Green); Console.WriteLine("Talk Enabled [ON]"); }