231 Commits

Author SHA1 Message Date
Steve Streeting
44dad3b505 Should transform bounds to world at end 2021-09-13 17:30:15 +01:00
Steve Streeting
f49df6d20b Working on an editor visualisation helper component 2021-09-13 16:57:51 +01:00
Steve Streeting
1ef851bce4 Oops, foreground check needs to actually loop 2021-07-21 11:20:35 +01:00
Steve Streeting
506f5612c0 Merge branch 'master' of github.com:sinbad/StevesUEHelpers 2021-07-19 13:02:18 +01:00
Steve Streeting
37af9f21ed Remove patreon 2021-07-19 13:02:13 +01:00
Steve Streeting
01bf2d3a40 Add Blueprint library func "SetFocusWidget"; improved focus setting without casting 2021-06-04 16:50:15 +01:00
Steve Streeting
cb561f190a For Blueprint version, ask for full angle not half angle for ease of use 2021-05-07 17:10:14 +01:00
Steve Streeting
19fbe814b3 Blueprint version of SphereOverlapCone should use degrees not radians 2021-05-07 17:04:55 +01:00
Steve Streeting
267140c350 Expose SphereOverlapCone to blueprints 2021-05-07 16:57:41 +01:00
Steve Streeting
45a35f0691 Fix doc error 2021-05-07 16:44:13 +01:00
Steve Streeting
2504792c97 Added StevesMathHelpers, with SphereOverlapCone to begin with 2021-05-07 16:19:17 +01:00
Steve Streeting
4422e6f6f7 Preparing the ground for non-XBox controller images
In practice I think I'm going to need SDL input for this
2021-04-29 14:54:42 +01:00
Steve Streeting
510423abfe Improve the checking for game in foreground
Instead of checking every imput event, check every 0.5s. Also expose the foregrounded boolean, and raise an event so other code can use this.
2021-04-29 12:28:27 +01:00
Steve Streeting
a466ce6a71 Don't fire input detector when game is in the background 2021-04-09 11:48:52 +01:00
Steve Streeting
dd23ed77dd Check for UStevesGameViewportClientBase on first input change rather than at Initialize, the latter is too early 2021-04-09 11:47:57 +01:00
Steve Streeting
eead056575 Update docs for FocusableCheckBox 2021-03-03 11:37:38 +00:00
Steve Streeting
1b0b22bae6 Stop propagating a single button style to all the mouse/gamepad versions in option widget
Firstly, this didn't always work correctly because cascading isn't saved in the editor transaction. Probably needs an editor plugin to do correctly. Secondly, maybe you'd want to have different styles anyway and this forces them to be overridden which isn't very flexible. Instead you now style all the buttons individually.
2021-03-03 11:01:30 +00:00
Steve Streeting
19f1d3e9ac Raise hover/unhover events on checkbox, this completes gamepad / keyboard navigation support 2021-03-02 16:00:08 +00:00
Steve Streeting
cf69450300 Note in comments that checkbox navigation has been fixed on UE master but not released yet 2021-03-02 15:34:45 +00:00
Steve Streeting
e440063d3e Fix keyboard navigation by bypassing broken SCheckBox::OnKeyDown for any non-Accept key 2021-03-02 14:47:37 +00:00
Steve Streeting
413491fd05 Working on a focusable check box for gamepad support 2021-03-02 12:59:18 +00:00
Steve Streeting
b66805057a Expose OnSelectedOptionChanged to Blueprints 2021-02-25 13:40:35 +00:00
Steve Streeting
c78d01fe55
Merge pull request #1 from alpha-channel-games/master
Update MenuStack.cpp to compile on 4.26
2020-12-17 10:34:24 +00:00
grujicbr
e2dc925ff4 Update MenuStack.cpp to compile on 4.26 2020-12-16 12:59:55 -05:00
Steve Streeting
77d4925712 Stop logging every input change 2020-12-02 13:02:43 +00:00
Steve Streeting
d18887c4c2 Document the rich text input image decorator 2020-11-24 17:34:34 +00:00
Steve Streeting
d81b07871d If height is manually set, derive the width from that not the originally calculated height 2020-11-24 17:30:12 +00:00
Steve Streeting
df20383558 Now dealing with image size / aspect ratio changes in embedded rich text images 2020-11-24 15:34:57 +00:00
Steve Streeting
d33ed25bad Dynamic changing of input image embedded in Rich Text now working 2020-11-24 13:09:00 +00:00
Steve Streeting
016e3977cf Pass initial sprite to Slate widget, it can't look it up because Construct happens in another thread? 2020-11-24 12:01:03 +00:00
Steve Streeting
1904476cc4 Cannot support custom theme in decorator, UE provides no UI to edit properties of decorators 2020-11-24 12:00:27 +00:00
Steve Streeting
3273836f3d Make SetBrushFromAtlas static for convenience 2020-11-24 11:58:48 +00:00
Steve Streeting
4c22341052 Even more safety 2020-11-23 12:52:55 +00:00
Steve Streeting
38d126ac64 Init state 2020-11-23 12:43:11 +00:00
Steve Streeting
6ad5b24b5f Safety check - if you ever call GetSubsystem() in editor code it crashes 2020-11-23 12:42:54 +00:00
Steve Streeting
3a209b3cfb First pass of creating an inline rich text image based on input mappings 2020-11-23 11:52:37 +00:00
Steve Streeting
183a601170 Useful utility to set Brush content from a sprite without using a UImage 2020-11-23 11:50:40 +00:00
Steve Streeting
b5bdc5141c Remove unnecessary includes 2020-11-23 11:50:06 +00:00
Steve Streeting
a2ca3076e9 Refactor input image lookup logic into GameSubsystem so it can be reused elsewhere 2020-11-20 17:41:26 +00:00
Steve Streeting
70bce95d3b Mention SetFocusProperly 2020-11-20 15:04:41 +00:00
Steve Streeting
b1b790d38e Mention FocusableUserWidget in FocusablePanel docs 2020-11-20 15:01:53 +00:00
Steve Streeting
9545382d1b Document the auto focus behaviour added to FocusableUserWidget 2020-11-20 15:00:08 +00:00
Steve Streeting
a4f6647cf6 Auto-focus system now not dependent on MenuStack, just FocusableUserWidget
This allows you to have other FocusableUserWidget subclasses (e.g. single dialogs)
automatically figure out focus between each other
2020-11-19 16:41:04 +00:00
Steve Streeting
918ccc5cc2 Make MenuStack::RemoveFromParent automatically close all menus remaining in the stack 2020-11-19 15:17:12 +00:00
Steve Streeting
9bcfeba9d7 Make Back and Instant Close inputs configurable in MenuStack (and removable) 2020-11-19 15:16:39 +00:00
Steve Streeting
0baefab436 Safety checks over PlayerController on shutdown in MenuStack 2020-11-19 15:05:46 +00:00
Steve Streeting
793e56051d Safety check 2020-11-19 13:36:02 +00:00
Steve Streeting
c964c990c0 Oops forgot new files 2020-11-19 13:35:53 +00:00
Steve Streeting
5af66f2243 Add MenuSystem which is capable of handling to focus between multiple MenuStacks, so that a closed stack can give focus back to the next most important stack automatically 2020-11-19 13:33:22 +00:00
Steve Streeting
f75706abc4 Make MenuStack able to restore input modes, game pause state and mouse pointer on exit 2020-11-18 15:47:50 +00:00