public IdentityController(IIdentityService identityService, IUserInterfaces userSevice, JWTSettings jWTSettings, IHostingEnvironment env) { _identityService = identityService; _userService = userSevice; _jwtSttings = jWTSettings; _env = env; }
public StatusBar( IUserInterfaces userInterfaces, IUserInterfaceGenerator userInterfaceGenerator, IMouse mouse, IGameSettings gameSettings) : base(mouse) { this.userInterfaces = userInterfaces; this.mouse = mouse; this.gameSettings = gameSettings; var separator = Path.DirectorySeparatorChar; Child = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Status Bar{separator}Background", this); MouseEnter += OnMouseEnter; }
public Rest( IUserInterfaces userInterfaces, IUserInterfaceGenerator userInterfaceGenerator, IMouse mouse, IGameSettings gameSettings) : base(mouse, gameSettings) { this.userInterfaces = userInterfaces; var stack = userInterfaceGenerator.MakeStackPanel(this); stack.Orientation = Orientation.Vertical; TenButton = userInterfaceGenerator.MakeButton(stack); TenButton.Child = userInterfaceGenerator.MakeLabel("10 minutes", TenButton); TenButton.MouseButtonUp += TenBtnOnMouseButtonUp; ThirtyButton = userInterfaceGenerator.MakeButton(stack); ThirtyButton.Child = userInterfaceGenerator.MakeLabel("30 minutes", ThirtyButton); ThirtyButton.MouseButtonUp += ThirtyBtnOnMouseButtonUp; SixtyButton = userInterfaceGenerator.MakeButton(stack); SixtyButton.Child = userInterfaceGenerator.MakeLabel("60 minutes", SixtyButton); SixtyButton.MouseButtonUp += SixtyBtnOnMouseButtonUp; SleepButton = userInterfaceGenerator.MakeButton(stack); SleepButton.Child = userInterfaceGenerator.MakeLabel("Sleep", SleepButton); SleepButton.MouseButtonUp += SleepBtnOnMouseButtonUp; CancelButton = userInterfaceGenerator.MakeButton(stack); CancelButton.Child = userInterfaceGenerator.MakeLabel("Cancel", CancelButton); CancelButton.MouseButtonUp += CancelBtnOnMouseButtonUp; stack.Children.Add(userInterfaceGenerator.MakeLabel("Rest for how long", stack)); stack.Children.Add(TenButton); stack.Children.Add(ThirtyButton); stack.Children.Add(SixtyButton); stack.Children.Add(SleepButton); stack.Children.Add(CancelButton); Child = stack; }
public VerbBar( IUserInterfaces userInterfaces, IUserInterfaceGenerator userInterfaceGenerator, IMouse mouse, IGameSettings gameSettings) : base(mouse) { this.userInterfaces = userInterfaces; this.mouse = mouse; this.gameSettings = gameSettings; IsVisible = false; var separator = Path.DirectorySeparatorChar; stackPanel = userInterfaceGenerator.MakeStackPanel(this); sideLeft = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Side Left", stackPanel); sideRight = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Side Right", stackPanel); WalkButton = userInterfaceGenerator.MakeButton(stackPanel); WalkImageBright = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Walk Light", WalkButton); WalkImageDark = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Walk Dark", WalkButton); WalkButton.Child = WalkImageDark; WalkButton.MouseButtonUp += WalkBtnOnLeftMouseButtonUp; WalkButton.MouseEnter += WalkBtnOnMouseEnter; WalkButton.MouseLeave += WalkBtnOnMouseLeave; LookButton = userInterfaceGenerator.MakeButton(stackPanel); LookImageBright = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Look Light", LookButton); LookImageDark = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Look Dark", LookButton); LookButton.Child = LookImageDark; LookButton.MouseButtonUp += LookBtnOnLeftMouseButtonUp; LookButton.MouseEnter += LookBtnOnMouseEnter; LookButton.MouseLeave += LookBtnOnMouseLeave; HandButton = userInterfaceGenerator.MakeButton(stackPanel); HandImageBright = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Hand Light", HandButton); HandImageDark = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Hand Dark", HandButton); HandButton.Child = HandImageDark; HandButton.MouseButtonUp += HandBtnOnLeftMouseButtonUp; HandButton.MouseEnter += HandBtnOnMouseEnter; HandButton.MouseLeave += HandBtnOnMouseLeave; TalkButton = userInterfaceGenerator.MakeButton(stackPanel); TalkImageBright = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Talk Light", TalkButton); TalkImageDark = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Talk Dark", TalkButton); TalkButton.Child = TalkImageDark; TalkButton.MouseButtonUp += TalkBtnOnLeftMouseButtonUp; TalkButton.MouseEnter += TalkBtnOnMouseEnter; TalkButton.MouseLeave += TalkBtnOnMouseLeave; SubMenuButton = userInterfaceGenerator.MakeButton(stackPanel); SubMenuImageBright = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Sub Menu Light", SubMenuButton); SubMenuImageDark = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Sub Menu Dark", SubMenuButton); SubMenuButton.Child = SubMenuImageDark; SubMenuButton.MouseButtonUp += SubMenuBtnOnLeftMouseButtonUp; SubMenuButton.MouseEnter += SubMenuBtnOnMouseEnter; SubMenuButton.MouseLeave += SubMenuBtnOnMouseLeave; MagicButton = userInterfaceGenerator.MakeButton(stackPanel); MagicImageBright = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Magic Light", MagicButton); MagicImageDark = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Magic Dark", MagicButton); MagicButton.Child = MagicImageDark; MagicButton.MouseButtonUp += MagicBtnOnLeftMouseButtonUp; MagicButton.MouseEnter += MagicBtnOnMouseEnter; MagicButton.MouseLeave += MagicBtnOnMouseLeave; CurrentItemButton = userInterfaceGenerator.MakeButton(stackPanel); CurrentItemImageBright = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Current Item Light", CurrentItemButton); CurrentItemImageDark = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Current Item Dark", CurrentItemButton); CurrentItemButton.Child = CurrentItemImageDark; CurrentItemButton.MouseButtonUp += CurrentItemBtnOnLeftMouseButtonUp; CurrentItemButton.MouseEnter += CurrentItemBtnOnMouseEnter; CurrentItemButton.MouseLeave += CurrentItemBtnOnMouseLeave; InventoryButton = userInterfaceGenerator.MakeButton(stackPanel); InventoryImageBright = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Inventory Light", InventoryButton); InventoryImageDark = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Inventory Dark", InventoryButton); InventoryButton.Child = InventoryImageDark; InventoryButton.MouseButtonUp += InventoryBtnOnLeftMouseButtonUp; InventoryButton.MouseEnter += InventoryBtnOnMouseEnter; InventoryButton.MouseLeave += InventoryBtnOnMouseLeave; OptionsButton = userInterfaceGenerator.MakeButton(stackPanel); OptionsImageBright = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Options Light", OptionsButton); OptionsImageDark = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Verb Bar{separator}Options Dark", OptionsButton); OptionsButton.Child = OptionsImageDark; OptionsButton.MouseButtonUp += OptionsBtnOnLeftMouseButtonUp; OptionsButton.MouseEnter += OptionsBtnOnMouseEnter; OptionsButton.MouseLeave += OptionsBtnOnMouseLeave; stackPanel.Children.Add(sideLeft); stackPanel.Children.Add(WalkButton); stackPanel.Children.Add(LookButton); stackPanel.Children.Add(HandButton); stackPanel.Children.Add(TalkButton); stackPanel.Children.Add(SubMenuButton); stackPanel.Children.Add(MagicButton); stackPanel.Children.Add(CurrentItemButton); stackPanel.Children.Add(InventoryButton); stackPanel.Children.Add(OptionsButton); stackPanel.Children.Add(sideRight); Child = stackPanel; MouseLeave += OnMouseLeave; }
public HillOverAlbion(ICampaigns campaigns, IUserInterfaces userInterfaces) { this.campaigns = campaigns; this.userInterfaces = userInterfaces; }
public Rest(IUserInterfaces userInterfaces) { this.userInterfaces = userInterfaces; }
public GameSettings(IUserInterfaces userInterfaces) { this.userInterfaces = userInterfaces; }
public ExtensionBar( IUserInterfaces userInterfaces, IUserInterfaceGenerator userInterfaceGenerator, IMouse mouse, IGameSettings gameSettings) : base(mouse, gameSettings) { this.userInterfaces = userInterfaces; var stackPanel = userInterfaceGenerator.MakeStackPanel(this); var separator = Path.DirectorySeparatorChar; LeftButton = userInterfaceGenerator.MakeButton(stackPanel); var left = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Extension Bar{separator}Left", LeftButton); LeftButton.Child = left; LeftButton.MouseButtonUp += SideOnMouseButtonUp; RightButton = userInterfaceGenerator.MakeButton(stackPanel); var right = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Extension Bar{Path.DirectorySeparatorChar}Right", RightButton); RightButton.Child = right; RightButton.MouseButtonUp += SideOnMouseButtonUp; RunButton = userInterfaceGenerator.MakeButton(stackPanel); RunImageBright = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Extension Bar{Path.DirectorySeparatorChar}Run Light", RunButton); RunImageDark = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Extension Bar{Path.DirectorySeparatorChar}Run Dark", RunButton); RunButton.Child = RunImageDark; RunButton.MouseButtonUp += RunOnMouseButtonUp; RunButton.MouseEnter += RunBtnOnMouseEnter; RunButton.MouseLeave += RunBtnOnMouseLeave; SneakButton = userInterfaceGenerator.MakeButton(stackPanel); SneakImageBright = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Extension Bar{Path.DirectorySeparatorChar}Sneak Light", SneakButton); SneakImageDark = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Extension Bar{Path.DirectorySeparatorChar}Sneak Dark", SneakButton); SneakButton.Child = SneakImageDark; SneakButton.MouseButtonUp += SneakOnMouseButtonUp; SneakButton.MouseEnter += SneakBtnOnMouseEnter; SneakButton.MouseLeave += SneakBtnOnMouseLeave; SleepButton = userInterfaceGenerator.MakeButton(stackPanel); SleepImageBright = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Extension Bar{Path.DirectorySeparatorChar}Sleep Light", SleepButton); SleepImageDark = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Extension Bar{Path.DirectorySeparatorChar}Sleep Dark", SleepButton); SleepButton.Child = SleepImageDark; SleepButton.MouseButtonUp += SleepOnMouseButtonUp; SleepButton.MouseEnter += SleepBtnOnMouseEnter; SleepButton.MouseLeave += SleepBtnOnMouseLeave; StatsButton = userInterfaceGenerator.MakeButton(stackPanel); StatsImageBright = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Extension Bar{Path.DirectorySeparatorChar}Stats Light", StatsButton); StatsImageDark = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Extension Bar{Path.DirectorySeparatorChar}Stats Dark", StatsButton); StatsButton.Child = StatsImageDark; StatsButton.MouseButtonUp += StatsOnMouseButtonUp; StatsButton.MouseEnter += StatsBtnOnMouseEnter; StatsButton.MouseLeave += StatsBtnOnMouseLeave; TimeButton = userInterfaceGenerator.MakeButton(stackPanel); TimeImageBright = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Extension Bar{Path.DirectorySeparatorChar}Time Light", TimeButton); TimeImageDark = userInterfaceGenerator.MakeImage($"Gui{separator}Sierra Vga{separator}Extension Bar{Path.DirectorySeparatorChar}Time Dark", TimeButton); TimeButton.Child = TimeImageDark; TimeButton.MouseButtonUp += TimeOnMouseButtonUp; TimeButton.MouseEnter += TimeBtnOnMouseEnter; TimeButton.MouseLeave += TimeBtnOnMouseLeave; stackPanel.Children.Add(LeftButton); stackPanel.Children.Add(RunButton); stackPanel.Children.Add(SneakButton); stackPanel.Children.Add(SleepButton); stackPanel.Children.Add(StatsButton); stackPanel.Children.Add(TimeButton); stackPanel.Children.Add(RightButton); Child = stackPanel; }
public HomeController(ILogger <HomeController> logger, IUserInterfaces user) { _logger = logger; _user = user; }
public ExtensionBar(IUserInterfaces userInterfaces) { this.userInterfaces = userInterfaces; }
public StatusBar(IUserInterfaces userInterfaces, IMouse mouse, IGameSettings gameSettings) { this.userInterfaces = userInterfaces; this.mouse = mouse; this.gameSettings = gameSettings; }
public Hero(IUserInterfaces userInterfaces, ICampaigns campaigns) { this.userInterfaces = userInterfaces; this.campaigns = campaigns; }
public VerbBar(IUserInterfaces userInterfaces, IMouse mouse) { this.userInterfaces = userInterfaces; this.mouse = mouse; }
public IdentityController(IIdentityService identityService, IUserInterfaces userSevice, JWTSettings jWTSettings) { _identityService = identityService; _userService = userSevice; _jwtSttings = jWTSettings; }
public BentSword(IUserInterfaces userInterfaces, ICampaigns campaigns) { this.userInterfaces = userInterfaces; this.campaigns = campaigns; }
public Llewella(IUserInterfaces userInterfaces, ICampaigns campaigns) { this.userInterfaces = userInterfaces; this.campaigns = campaigns; }
public Fountain(ICampaigns campaigns, IUserInterfaces userInterfaces) { this.campaigns = campaigns; this.userInterfaces = userInterfaces; }
public ApiController(IUserInterfaces userSevice, Logic.Options.JWTSettings jWTSettings, IHostingEnvironment env) { _userService = userSevice; _env = env; _jwtSttings = jWTSettings; }