Comments (8)
from uinavigation.
UE 4.22
from uinavigation.
from uinavigation.
2.7.2
I pulled it in through UE marketplace this morning.
from uinavigation.
How are you creating the grids? Can you send a screenshot?
from uinavigation.
Yeah sure. For what it's worth, this is a pretty slick plugin you have here.
I'm still in the super early stages of putting it all together, so screenshots illustrate a hard-coded set of inventory icons in 3 groups and 8 icons each, but at some point this will be entirely dynamic based on a character that can have an un-bounded set of items that will grouped by category (swords, axes, bows, etc). So each group (grid) needs to be a wrap box that is sized so that only 5 icons can fit before wrapping. This aligns with the Dimension X of the 2d grid. So it's:
<verticle box>
<header>
<hr>
<wrap box>
<nav button>
<nav button>
....
</wrap box>
<header>
<hr>
<wrap box>
<nav button>
<nav button>
....
</wrap box>
...repeat...
</verticle box>
This actually works out very well. This only thing is, I had to adjust the c++ code to make it work. I found the original 0 button parameter enforcement unnecessary. This works just fine:
void UUINavWidget::AppendNavigationGrid2D(int DimensionX, int DimensionY, FButtonNavigation EdgeNavigation, bool bWrap, int ButtonsInGrid)
{
FButtonNavigation NewNav;
FGrid NewGrid = FGrid(EGridType::Grid2D, UINavButtons.Num() > 0 ? UINavButtons[NumberOfButtonsInGrids] : nullptr, NavigationGrids.Num(), DimensionX, DimensionY, EdgeNavigation, bWrap, ButtonsInGrid);
...
}
from uinavigation.
Thanks for the compliment
So if you call the functions the way you do in the screenshot and without modifying the AppendNavigation2D function, what happens?
from uinavigation.
Oh ok I get what the problem is
I'll take care of it!
from uinavigation.
Related Issues (20)
- Add UINavComponent reference to UINavButton
- Add CustomInput events to UINavComponent
- Add event for when ActiveWidget changes in UINavController
- Update selector location after scroll box is scrolled
- Add Input Container scroll box to UINavWidget scroll boxes
- Fix crash in UINavHorizontalComponent's ChangeText function
- Changing UINavSlider MinValue and MaxValue produces wrong results HOT 2
- UINavSlider spinbox does not get rounded to nearest Interval. HOT 5
- Add property to UINavButton to check if it's currently being navigated HOT 1
- Selector does not properly follow UINavButton contained in Scroll Box HOT 3
- DeleteUINavElements will crash the engine if no UINavElements exist
- Allow adding widget to player screen when not in Split Screen
- OnStopSelect isn't called when using Mouse HOT 2
- How to do button navigation between two UINavWidget?
- Root level widget not being removed after level transition HOT 1
- New Documentation? HOT 1
- Remove default input mapping context file HOT 1
- Should swap GetDefault and GetMutableDefault? HOT 1
- Linked error on static function UUINavWidget::GetOuterObject HOT 1
- Avoid updating when trying to go left while in first option without loop (UINavComponentBox) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uinavigation.