void Awake() { playerInstance = GameObject.Find("Player").GetComponent <Player>(); gameControlInstance = gc.GetComponent <GameControl> (); gameControlGUIInstance = gc.GetComponent <GameControlGUI> (); shopControlInstance = gc.GetComponent <ShopControl> (); shopControlGUIInstance = gc.GetComponent <ShopControlGUI> (); clickControlInstance = gc.GetComponent <ClickControl> (); gridControlInstance = gc.GetComponent <GridControl>(); optionControlInstance = gc.GetComponent <OptionControl>(); dragControlInstance = gc.GetComponent <DragControl>(); eventGUIInstance = gc.GetComponent <EventGUI>(); enemyLibraryInstance = gc.GetComponent <EnemyLibrary>(); cardLibraryInstance = gc.GetComponent <CardLibrary>(); goalLibraryInstance = gc.GetComponent <GoalLibrary>(); guiStyleLibraryInstance = gc.GetComponent <GUIStyleLibrary>(); mainMenuInstance = gc.GetComponent <MainMenu>(); encyclopediaMenuInstance = gc.GetComponent <EncyclopediaMenu>(); godChoiceMenuInstance = gc.GetComponent <GodChoiceMenu>(); customizeMenuInstance = gc.GetComponent <CustomizeMenu>(); gridCursorControlInstance = gc.GetComponent <GridCursorControl>(); menuControlInstance = gc.GetComponent <MenuControl>(); tutorialInstance = gc.GetComponent <Tutorial>(); deckAnimateInstance = deck.GetComponent <DeckAnimate>(); shopAndGoalParentCanvasInstance = goalandshopparent .GetComponent <ShopAndGoalParentCanvas>(); shopGridCanvasInstance = shopgrid .GetComponent <ShopGridCanvas>(); gridCursorControlGUIInstance = gridcursorcontrolgui .GetComponent <GridCursorControlGUI>(); }
/* ----------------------------------------------------------------- */ /// /// ShowCustomizeView /// /// <summary> /// コンテキストメニューのカスタマイズ画面を表示します。 /// </summary> /// /// <param name="e">コンテキストメニュー</param> /// /* ----------------------------------------------------------------- */ public override void ShowCustomizeView(QueryEventArgs <IEnumerable <ContextMenu> > e) { var n = 0; var vm = new CustomContextViewModel(e.Query); var view = new CustomizeMenu(new TreeView(), new TreeView()); view.Updated += (_, __) => ++ n; view.Register(vm.Source, vm.Current, vm.Images); Assert.That(view.IsRegistered, Is.True); Assert.That(view.IsEditable, Is.False); Assert.That(view.Source.SelectedNode, Is.Not.Null); Assert.That(view.Target.SelectedNode, Is.Not.Null); Assert.That(n, Is.EqualTo(1)); e.Cancel = !CustomizeContext(view); if (!e.Cancel) { e.Result = view.Result; } }
public CustomizeButton(CharacterEditorMenu root, bool isClothingStore) { Title = "Customize"; SubMenu = new CustomizeMenu(root, isClothingStore); }
void Awake() { playerInstance = GameObject.Find("Player").GetComponent<Player>(); gameControlInstance = gc.GetComponent<GameControl> (); gameControlGUIInstance = gc.GetComponent<GameControlGUI> (); shopControlInstance = gc.GetComponent<ShopControl> (); shopControlGUIInstance = gc.GetComponent<ShopControlGUI> (); clickControlInstance = gc.GetComponent<ClickControl> (); gridControlInstance = gc.GetComponent<GridControl>(); optionControlInstance = gc.GetComponent<OptionControl>(); dragControlInstance = gc.GetComponent<DragControl>(); eventGUIInstance = gc.GetComponent<EventGUI>(); enemyLibraryInstance = gc.GetComponent<EnemyLibrary>(); cardLibraryInstance = gc.GetComponent<CardLibrary>(); goalLibraryInstance = gc.GetComponent<GoalLibrary>(); guiStyleLibraryInstance = gc.GetComponent<GUIStyleLibrary>(); mainMenuInstance = gc.GetComponent<MainMenu>(); encyclopediaMenuInstance = gc.GetComponent<EncyclopediaMenu>(); godChoiceMenuInstance = gc.GetComponent<GodChoiceMenu>(); customizeMenuInstance = gc.GetComponent<CustomizeMenu>(); gridCursorControlInstance = gc.GetComponent<GridCursorControl>(); menuControlInstance = gc.GetComponent<MenuControl>(); tutorialInstance = gc.GetComponent<Tutorial>(); deckAnimateInstance = deck.GetComponent<DeckAnimate>(); shopAndGoalParentCanvasInstance = goalandshopparent .GetComponent<ShopAndGoalParentCanvas>(); shopGridCanvasInstance = shopgrid .GetComponent<ShopGridCanvas>(); gridCursorControlGUIInstance = gridcursorcontrolgui .GetComponent<GridCursorControlGUI>(); }