DGAW Wednesday. A Reusable Resizable Movable Widget for UMG

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ก.ย. 2024

ความคิดเห็น • 39

  • @venelinspiridonov7
    @venelinspiridonov7 3 ปีที่แล้ว +1

    Thanks for sharing this gem. Can I kindly ask for some ways to limit the drag only on Y axis?

  • @thedarkparallax1887
    @thedarkparallax1887 หลายเดือนก่อน

    How did you make this though!? Can you do a tutorial on that?

  • @sparrowpriest9608
    @sparrowpriest9608 4 ปีที่แล้ว +2

    it's been 5 years so i hope you see this..
    i don't know what is going on but it's not working and i get a ton of errors:
    Blueprint Runtime Error: "Accessed None trying to read property HeaderTextWidget". Blueprint: ResizableWindow Function: Reset Variables to Default Graph: ResetVariablesToDefault Node: Set Font
    Blueprint Runtime Error: "Accessed None trying to read property ResizeArea". Blueprint: ResizableWindow Function: Reset Variables to Default Graph: ResetVariablesToDefault Node: Set Brush Color
    Blueprint Runtime Error: "Accessed None trying to read property HeaderArea". Blueprint: ResizableWindow Function: Reset Variables to Default Graph: ResetVariablesToDefault Node: Set Brush Color
    Blueprint Runtime Error: "Accessed None trying to read property HeaderTextWidget". Blueprint: ResizableWindow Function: Reset Variables to Default Graph: ResetVariablesToDefault Node: Set Color and Opacity
    Blueprint Runtime Error: "Accessed None trying to read property ResizeAreaBox". Blueprint: ResizableWindow Function: Reset Variables to Default Graph: ResetVariablesToDefault Node: Set Width Override
    Blueprint Runtime Error: "Accessed None trying to read property ResizeAreaBox". Blueprint: ResizableWindow Function: Reset Variables to Default Graph: ResetVariablesToDefault Node: Set Height Override
    Blueprint Runtime Error: "Accessed None trying to read property ResizeArea". Blueprint: ResizableWindow Function: Reset Variables to Default Graph: ResetVariablesToDefault Node: Set Brush
    and so on and so on.
    i added both widgets you mentioned to my project and they are both in the same folder.
    (i unzipped only these two files directly into my game folder, was i not supposed to do it this way?)
    can you help?

    • @WackieWatty
      @WackieWatty 2 ปีที่แล้ว

      I have the same issue. On 4.27 these variables don't seem to be set up. Also had a look on 4.21 and it seems to work okay there.

    •  2 ปีที่แล้ว

      Me too, brudas

  • @tineasgia9124
    @tineasgia9124 2 ปีที่แล้ว

    good job; How can I make the button not deformed? that is to say so that it maintains its square shape?

  • @pdcsky
    @pdcsky ปีที่แล้ว

    How do you constrain the mouse position during dragging a window?

  • @JAMbosco
    @JAMbosco 2 ปีที่แล้ว

    Thanks a lot for This and your Time :)
    What if we wanted to drag from the left side?

    • @JAMbosco
      @JAMbosco 2 ปีที่แล้ว

      Finally found how to do this
      There's some tweaks to do on code involving Alignment 1 on X and 0 on Y (at Mouse Move) {Make sure that our ResizableWindow on our Canvas Widget have 1X/0Y Alignment}, substracting Original X/Y with Delta X/Y on Clamp (at Determine New Size), discarting SetPosition and SetAligment (at Mouse Button Up Event) and setting the PreResizeOffset to 0/0 (at On Resize Area Mouse Button Down)
      Keep in mind, creating an Instance Editable Boolean that we can use on those places along some Branches to leave the original code intact will help to make this even better
      Hope this helps somebody, comment for details if not

  • @henriquesousa7428
    @henriquesousa7428 ปีที่แล้ว

    how reset drag default position?

  • @cv7041
    @cv7041 5 ปีที่แล้ว

    I know this is an older asset, but is there a way to make the normal background 100% transparent? It is mostly transparent but there is still a tint that I would like to have completed gone

  • @FajarKurniawan10
    @FajarKurniawan10 7 ปีที่แล้ว

    Thanks, and i need help!
    i put an image into border as a child, when i drag this border to resize or move it work fine but this image turn blank/white. why this happened?

  • @NAFFER84
    @NAFFER84 7 ปีที่แล้ว +1

    Thats awesome. Thank you very much, lets see much much can i lwarn from it :)

    • @NAFFER84
      @NAFFER84 7 ปีที่แล้ว

      Doesnt work for latest version -.-

    • @MathewWadsteinTutorials
      @MathewWadsteinTutorials  7 ปีที่แล้ว +1

      I grabbed the source from the Github Repo, opened it in the latest stable version (4.15.1), and ran the default example map and I had no problems here. What did not work properly for you?

    • @NAFFER84
      @NAFFER84 7 ปีที่แล้ว

      When in opening the Blueprint. I got alrdy an error. I could showing it up to you (later).
      Thx for answer at all :) Give me 30-60min....

    • @NAFFER84
      @NAFFER84 7 ปีที่แล้ว

      I gonna try it again and show u my "fault" or "error".

    • @NAFFER84
      @NAFFER84 7 ปีที่แล้ว

      Watching your livestream now, i try it later, maybe i learn something from you.

  • @cv7041
    @cv7041 5 ปีที่แล้ว

    ok well setting the drag appears to alpha=0 worked, but then when dragging I would like some visualization.

  • @CaseyChevalier
    @CaseyChevalier 3 ปีที่แล้ว

    Thank you so much for this! It’s been so useful. I’ve been trying to modify the blueprint to add a close window button but I’m struggling with it. Any thoughts on how we could add it?

    • @bullpuppy7455
      @bullpuppy7455 3 ปีที่แล้ว +2

      I think you're looking for the blueprint node called 'Remove From Parent'. You'd basically want to use it on the parent widget to remove the parent widget (and it's children) from the viewport when the button is clicked. Hope that helps point you in the right direction!

    • @CaseyChevalier
      @CaseyChevalier ปีที่แล้ว +1

      @@bullpuppy7455 Forgot to thank you for your helpful tip! That worked :)

    • @bullpuppy7455
      @bullpuppy7455 ปีที่แล้ว +1

      @@CaseyChevalier Anytime friend!:)

  • @HeXtion
    @HeXtion 4 ปีที่แล้ว

    Thanks man, would have never found out how to size Widget components in Bp if not this example :)

  • @8-bitdev
    @8-bitdev ปีที่แล้ว

    good job 👍

  • @XanderManCan
    @XanderManCan 8 ปีที่แล้ว

    Is there a way to make this a responsive UI. That being, it reorganizes the buttons based on the window size?

    • @MathewWadsteinTutorials
      @MathewWadsteinTutorials  8 ปีที่แล้ว

      +Derek Prinzi The way this is set up the content slot will take anything you want to put in it, another control or even another widget you have created. For something like a responsive UI you can look into the Wrap Box control and make something based on that. It is designed to automatically wrap controls vertically as the horizontal size changes. I was able to put a wrap box as the content for the window and then add in some buttons and such and it wrapped them as I re-sized. This might not work 100% out of the box doing that but making a custom "window" that does what you want in the re-sizable container may work.
      Alternately most other controls work together to re-size by adjusting the alignment settings and using things such as spacers and the grid panels to try and get it done automatically.
      As this is being done in code for the re-size itself as a last method one could create the UI element in code and then after the re-size then redo the element based on the new size itself as well.

  • @ThibDe
    @ThibDe 7 ปีที่แล้ว

    Sorry to bother: when dragging or resizing if I move the mouse too fast the widget won't follow... know issue ? Thank you !

    • @MathewWadsteinTutorials
      @MathewWadsteinTutorials  7 ปีที่แล้ว

      Not that I know of, atleast not that I can reproduce here.

    • @ThibDe
      @ThibDe 7 ปีที่แล้ว

      Indeed when I try in your exampleUI I don't have this problem...

  • @mspcbs1657
    @mspcbs1657 ปีที่แล้ว

    upload tutorial for A Reusable Resizable Movable Widget for UMG

  • @MissingWorldsMedia
    @MissingWorldsMedia 5 ปีที่แล้ว

    When I tried to use this, the window instantly inverted when I clicked resize.

  • @ThibDe
    @ThibDe 7 ปีที่แล้ว

    Great work ! Thank you !

    • @ThibDe
      @ThibDe 7 ปีที่แล้ว

      Question: I have a widget created when an actor is clicked and removed when clicked elsewhere. After you drag the widget and remove it, can you set whether it will be back at his original place or the place you dragged it ?

    • @MathewWadsteinTutorials
      @MathewWadsteinTutorials  7 ปีที่แล้ว

      You would have to add some more code but I don't see why this would not be possible. If you intend to save the position of widgets after you destroy them you can just have an overall Blueprint like a Window Manager that stores the info for the windows.

    • @ThibDe
      @ThibDe 7 ปีที่แล้ว

      Mathew Wadstein I followed Rama's tutorial for scrollable list of button and the position is not saved. However on another widget it is saved... I try to figure out why !

  • @franckr6145
    @franckr6145 7 ปีที่แล้ว

    hello, thank you for this works, it's very helpfull !
    So i set up a level with a character moving to my cursor : a mouse click button and a simple move to target,
    but when i create one sizeable widget, (which works fine), i can't move my character anymore (i've test to print something, it's appear that mouseclick doesn't works) How can i solve this ?

    • @franckr6145
      @franckr6145 7 ปีที่แล้ว

      ok i'm answering myself : juste remove "Set Input Mode UIOnly" :)