ShooterGame using Unreal and NoesisGUI
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Build UE4 ShooterGame Dec 13, 2017
Config UE4 ShooterGame Dec 13, 2017
Content Fixed Blend project after adding EventToCommand Mar 14, 2018
Source Updated to 4.20 Jul 25, 2018
.gitattributes UE4 ShooterGame Dec 13, 2017
README.md Bad link in README Jan 10, 2018
ShooterGame.png UE4 ShooterGame Dec 13, 2017
ShooterGame.uproject Updated to 4.20 Jul 25, 2018

README.md

NoesisGUI Unreal Engine ShooterGame Demo

Demo screenshot

Introduction

This is a modified version of Epic's ShooterGame tutorial in which we've replaced the original UI (HUD and menus) with one made with NoesisGUI. Because the original UI was done using native code (HUD and Slate Widgets), we've had to make some changes to expose some data and functionality to Blueprints, but all the UI is done using XAML and Blueprints.

Demo Breakdown

Blueprint

  • Blueprint'/Game/Blueprints/Noesis/ShooterGame_Menu_Noesis.ShooterGame_Menu_Noesis', Blueprint'/Game/Blueprints/Noesis/ShooterGame_TeamDeathmatch_Noesis.ShooterGame_TeamDeathmatch_Noesis' and Blueprint'/Game/Blueprints/Noesis/ShotterGame_FreeForAll_Noesis.ShotterGame_FreeForAll_Noesis': These GameModes replace the original ones. They specify which controllers to use (Blueprint'/Game/Blueprints/Noesis/ShooterPlayerController_Menu_Noesis.ShooterPlayerController_Menu_Noesis' in Blueprint'/Game/Blueprints/Noesis/ShooterGame_Menu_Noesis.ShooterGame_Menu_Noesis' and Blueprint'/Game/Blueprints/Noesis/ShooterPlayerController_Noesis.ShooterPlayerController_Noesis' in the other two), and specify no HUD will be used, as we will be using NoesisGUI for it.

Blueprint'/Game/Blueprints/Noesis/ShooterGame_Menu_Noesis.ShooterGame_Menu_Noesis'

  • Blueprint'/Game/Blueprints/Noesis/ShooterPlayerController_Menu_Noesis.ShooterPlayerController_Menu_Noesis': It replaces the PlayerController used in the main menu of the game. It binds to the events OnStateStarted and OnStateEnding from ShooterGameInstance. The function OnStateStarted is responsible for creating a Widget from the NoesisView NoesisBlueprint'/Game/Noesis/ShooterMainMenuWidget.ShooterMainMenuWidget', adding it to the viewport and setting the input mode.

Blueprint'/Game/Blueprints/Noesis/ShooterPlayerController_Menu_Noesis.ShooterPlayerController_Menu_Noesis'

  • Blueprint'/Game/Blueprints/Noesis/ShooterPlayerController_Noesis.ShooterPlayerController_Noesis': It replaces the PlayerController used in game. It handles the InGameMenu InputAction to show and hide the in game menu, which is a Widget created from the NoesisView NoesisBlueprint'/Game/Noesis/ShooterInGameMenuWidget.ShooterInGameMenuWidget'.

Blueprint'/Game/Blueprints/Noesis/ShooterPlayerController_Noesis.ShooterPlayerController_Noesis'

  • NoesisBlueprint'/Game/Noesis/ShooterHUDWidget.ShooterHUDWidget': It's the NoesisView for the in game HUD. It also the DataContext for the NoesisXaml NoesisXaml'/Game/HUD.HUD'. It exposes the properties used for Binding as variables, which are grouped in the 'Properties' category.

NoesisBlueprint'/Game/Noesis/ShooterHUDWidget.ShooterHUDWidget'

  • NoesisBlueprint'/Game/Noesis/ShooterInGameMenuWidget.ShooterInGameMenuWidget': It's the NoesisView for the in game HUD. It also the DataContext for the NoesisXaml NoesisXaml'/Game/GameMenu.GameMenu'. It exposes the properties used for Binding as variables, which are grouped in the 'Properties' category, and a few as pairs of Get/Set functions. Note how the properties InfiniteAmmo, InfiniteClip, FreezeMatchTimer and HealthRegeneration, which are the ones implemented as functions and get their data from the ShooterPlayerController are manually notified in the Initialize function when said variable changes, as well as in the corresponding Set functions. It also implements the Commands ApplyOptions, Resume, BackToMainMenu and Quit.

NoesisBlueprint'/Game/Noesis/ShooterInGameMenuWidget.ShooterInGameMenuWidget'

  • NoesisBlueprint'/Game/Noesis/ShooterMainMenuWidget.ShooterMainMenuWidget': It's the NoesisView for the in game HUD. It also the DataContext for the NoesisXaml NoesisXaml'/Game/MainMenu.MainMenu'. It exposes the properties used for Binding as variables, which are grouped in the 'Properties' category. It also implements the Commands ApplyOptions, HostFFA, HostTDM, SearchServer, JoinGame and Quit.SearchServer and JoinGame are used along CanExecuteSearchServer and CanExecuteJoinGame, that serve as the CanExecute functions of their respective Commands.

NoesisBlueprint'/Game/Noesis/ShooterMainMenuWidget.ShooterMainMenuWidget'

  • ShooterEntry - Level Blueprint: It has a GameMode override to use Blueprint'/Game/Blueprints/Noesis/ShooterGame_Menu_Noesis.ShooterGame_Menu_Noesis'.

ShooterEntry - Level Blueprint