Ejemplo n.º 1
0
        public GameScenesVisibility(params GameScenes[] gameScenes)
        {
            Type gameScenesVisibilityType = ToolbarTypes.getType("Toolbar.GameScenesVisibility");

            realGameScenesVisibility = Activator.CreateInstance(gameScenesVisibilityType, new object[] { gameScenes });
            visibleProperty          = ToolbarTypes.getProperty(gameScenesVisibilityType, "Visible");
        }
        public GameScenesVisibility(params GameScenes[] gameScenes)
        {
            Type type = ToolbarTypes.getType("Toolbar.GameScenesVisibility");

            this.realGameScenesVisibility = Activator.CreateInstance(type, (object)gameScenes);
            this.visibleProperty          = ToolbarTypes.getProperty(type, nameof(Visible));
        }
Ejemplo n.º 3
0
 internal ButtonTypes(Type iButtonType)
 {
     this.iButtonType                = iButtonType;
     this.textProperty               = ToolbarTypes.getProperty(iButtonType, "Text");
     this.textColorProperty          = ToolbarTypes.getProperty(iButtonType, "TextColor");
     this.texturePathProperty        = ToolbarTypes.getProperty(iButtonType, "TexturePath");
     this.toolTipProperty            = ToolbarTypes.getProperty(iButtonType, "ToolTip");
     this.visibleProperty            = ToolbarTypes.getProperty(iButtonType, "Visible");
     this.visibilityProperty         = ToolbarTypes.getProperty(iButtonType, "Visibility");
     this.effectivelyVisibleProperty = ToolbarTypes.getProperty(iButtonType, "EffectivelyVisible");
     this.enabledProperty            = ToolbarTypes.getProperty(iButtonType, "Enabled");
     this.importantProperty          = ToolbarTypes.getProperty(iButtonType, "Important");
     this.drawableProperty           = ToolbarTypes.getProperty(iButtonType, "Drawable");
     this.onClickEvent               = ToolbarTypes.getEvent(iButtonType, "OnClick");
     this.onMouseEnterEvent          = ToolbarTypes.getEvent(iButtonType, "OnMouseEnter");
     this.onMouseLeaveEvent          = ToolbarTypes.getEvent(iButtonType, "OnMouseLeave");
     this.destroyMethod              = ToolbarTypes.getMethod(iButtonType, "Destroy");
 }