Author Topic: In-game scrolling broken when there's another GUI open  (Read 791 times)

While in the PlayGui...

new GuiControl(g) { noCursor = true; };
Canvas.pushDialog(g);


Despite there being no visible GUI on screen, the normal movement and aiming controls still working, trying to scroll (through items, bricks, wrench menus, etc.) doesn't work.

Canvas.bringToFront(g);

The extra GUI is now behind the PlayGui. Canvas order:

  - g
  - PlayGui
  - NewChatHud


Scrolling still doesn't work. How do I get it to work? Why can the NewChatHud be on there without breaking scrolling too?

I believe that NewChatHUD is actually added to the PlayGUI, rather than being put in front of it.
This is incorrect but the below will still work.

Just do PlayGUI.add(myGUI);
« Last Edit: September 13, 2015, 01:55:49 PM by Greek2me »

Just do PlayGUI.add(myGUI);
This is what I did for my HUD featured in Ark RPG.

I believe that NewChatHUD is actually added to the PlayGUI, rather than being put in front of it.
This is incorrect but the below will still work.

Just do PlayGUI.add(myGUI);

This isn't supposed to be in the PlayGUI, it's supposed to always be behind every GUI (even the main content one). This normally works fine but breaks scrolling in-game.

This is what I did for my HUD featured in Ark RPG.
if you want to make your gui clickable add it to the newchathud