Giter VIP home page Giter VIP logo

Comments (8)

goncasmage1 avatar goncasmage1 commented on May 29, 2024

from uinavigation.

Levitikon217 avatar Levitikon217 commented on May 29, 2024

UE 4.22

from uinavigation.

goncasmage1 avatar goncasmage1 commented on May 29, 2024

from uinavigation.

Levitikon217 avatar Levitikon217 commented on May 29, 2024

2.7.2
I pulled it in through UE marketplace this morning.

from uinavigation.

goncasmage1 avatar goncasmage1 commented on May 29, 2024

How are you creating the grids? Can you send a screenshot?

from uinavigation.

Levitikon217 avatar Levitikon217 commented on May 29, 2024

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);
	...
}

Capture
Capture2
Capture3

from uinavigation.

goncasmage1 avatar goncasmage1 commented on May 29, 2024

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.

goncasmage1 avatar goncasmage1 commented on May 29, 2024

Oh ok I get what the problem is 👍
I'll take care of it!

from uinavigation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.