public FormBox(Game g) : base(g) { BGTextureBox = new TextureBox(g); ControlBoxes.Add(BGTextureBox); OnFormBoxAppear = new FormBoxEvent(OnFormBoxAppearCode); OnFormBoxDisappear = new FormBoxEvent(OnFormBoxDisappearCode); OnFormBoxFocus = new FormBoxEvent(OnFormBoxFocusCode); OnFormBoxLostFocus = new FormBoxEvent(OnFormBoxLostFocusCode); OnKeyDown = new KeyboardEvent(OnKeyDownCode); OnKeyUp = new KeyboardEvent(OnKeyUpCode); OnKeyDownHold = new KeyboardEvent(OnKeyDownHoldCode); }
public MenuMonster(Game g) : base(g) { Name = "MenuMonster"; movie = game.LoadDotMXMovie(game.MovieFiles["cursor"].FullName); OnFormBoxDisappear += new FormBoxEvent(MenuMonster_OnFormBoxDisappear); OnFormBoxAppear += new FormBoxEvent(MenuMonster_OnFormBoxAppear); ControlBoxes.Clear(); for (int i = 0; i < 16; i++) { bb.Add(new ButtonBox(game)); bb[i].OnButtonFocus += new ButtonBoxEvent(MenuMonster_OnButtonFocus); bb[i].OnButtonUp += new ButtonBoxEvent(MenuMonster_OnButtonUp); //ControlBoxes.Add(bb[i]); } }
public FormBox(Game g) : base(g) { BGTextureBox = new TextureBox(g); ControlBoxes.Add(BGTextureBox); OnFormBoxAppear = new FormBoxEvent(OnFormBoxAppearCode); OnFormBoxDisappear = new FormBoxEvent(OnFormBoxDisappearCode); OnFormBoxFocus = new FormBoxEvent(OnFormBoxFocusCode); OnFormBoxLostFocus = new FormBoxEvent(OnFormBoxLostFocusCode); OnKeyDown = new KeyboardEvent(OnKeyDownCode); OnKeyUp = new KeyboardEvent(OnKeyUpCode); OnKeyDownHold = new KeyboardEvent(OnKeyDownHoldCode); }
public MenuMonster(Game g) : base(g) { Name = "MenuMonster"; movie = game.LoadDotMXMovie(game.MovieFiles["cursor"].FullName); OnFormBoxDisappear += new FormBoxEvent(MenuMonster_OnFormBoxDisappear); OnFormBoxAppear += new FormBoxEvent(MenuMonster_OnFormBoxAppear); ControlBoxes.Clear(); for (int i = 0; i < 16; i++) { bb.Add(new ButtonBox(game)); bb[i].OnButtonFocus += new ButtonBoxEvent(MenuMonster_OnButtonFocus); bb[i].OnButtonUp += new ButtonBoxEvent(MenuMonster_OnButtonUp); //ControlBoxes.Add(bb[i]); } }