Esempio n. 1
0
        public override void Initialize()
        {
            base.Initialize();
            size = new Vector2(120, 20);

            curElement = new Button(0, 0, width - 20, 20, "");
            arrow      = new Button(width - 20, 0, 20, 20, "v");
            contextMenu.WantedWidth = 100;

            curElement.onClicked += new Button.ClickedEventHandler(curElement_onClicked);
            arrow.onClicked      += new Button.ClickedEventHandler(curElement_onClicked);

            curElement.foreground = Color.White;

            contextMenu.onElementSelected += new ContextMenu.ElementSelectedHandler(contextMenu_onElementSelected);

            curElement.Initialize();
            arrow.Initialize();
            contextMenu.Initialize();

            downArrow = ResourceManager.Load <Texture2D>("GUI/Elements/ComboBoxButton");
            bg        = ResourceManager.Load <Texture2D>("GUI/Elements/ComboBoxBg");
        }
Esempio n. 2
0
 public override void Initialize()
 {
     base.Initialize();
     ltext.Initialize();
     bcheck.Initialize();
 }