public PopupMenuDrawable() { Type type = ToolbarTypes.getType("Toolbar.PopupMenuDrawable"); realPopupMenuDrawable = Activator.CreateInstance(type, null); updateMethod = ToolbarTypes.getMethod(type, "Update"); drawMethod = ToolbarTypes.getMethod(type, "Draw"); addOptionMethod = ToolbarTypes.getMethod(type, "AddOption"); addSeparatorMethod = ToolbarTypes.getMethod(type, "AddSeparator"); destroyMethod = ToolbarTypes.getMethod(type, "Destroy"); onAnyOptionClickedEvent = ToolbarTypes.getEvent(type, "OnAnyOptionClicked"); }
internal ButtonTypes(System.Type iButtonType) { this.iButtonType = iButtonType; textProperty = ToolbarTypes.getProperty(iButtonType, "Text"); textColorProperty = ToolbarTypes.getProperty(iButtonType, "TextColor"); texturePathProperty = ToolbarTypes.getProperty(iButtonType, "TexturePath"); toolTipProperty = ToolbarTypes.getProperty(iButtonType, "ToolTip"); visibleProperty = ToolbarTypes.getProperty(iButtonType, "Visible"); visibilityProperty = ToolbarTypes.getProperty(iButtonType, "Visibility"); effectivelyVisibleProperty = ToolbarTypes.getProperty(iButtonType, "EffectivelyVisible"); enabledProperty = ToolbarTypes.getProperty(iButtonType, "Enabled"); importantProperty = ToolbarTypes.getProperty(iButtonType, "Important"); drawableProperty = ToolbarTypes.getProperty(iButtonType, "Drawable"); onClickEvent = ToolbarTypes.getEvent(iButtonType, "OnClick"); onMouseEnterEvent = ToolbarTypes.getEvent(iButtonType, "OnMouseEnter"); onMouseLeaveEvent = ToolbarTypes.getEvent(iButtonType, "OnMouseLeave"); destroyMethod = ToolbarTypes.getMethod(iButtonType, "Destroy"); }
public GameScenesVisibility(params GameScenes[] gameScenes) { System.Type type = ToolbarTypes.getType("Toolbar.GameScenesVisibility"); realGameScenesVisibility = System.Activator.CreateInstance(type, gameScenes); visibleProperty = ToolbarTypes.getProperty(type, "Visible"); }