Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buttons wont work #17

Closed
Gmod18 opened this issue Apr 18, 2020 · 11 comments
Closed

Buttons wont work #17

Gmod18 opened this issue Apr 18, 2020 · 11 comments
Labels
enhancement New feature or request

Comments

@Gmod18
Copy link

Gmod18 commented Apr 18, 2020

The button wont work for some reason i dont have anymore to say cause idk whats making it not get hightlighted

Garry's Mod Screenshot 2020 04 18 - 16 43 27 91

@Gmod18
Copy link
Author

Gmod18 commented Apr 18, 2020

i forgot to add that the buttons in this image are floating because i thought it might be the collison box of the prop

@Gmod18
Copy link
Author

Gmod18 commented Apr 19, 2020

i raised the buttons higher and they work but they are like 3 feet above the table so is there a way to make them work on the normal level

@wyozi wyozi added the enhancement New feature or request label Apr 19, 2020
@wyozi
Copy link
Contributor

wyozi commented Apr 19, 2020

The problem here is the table's collision model. The library could use a feature to ignore certain entities in input collisions

@wyozi
Copy link
Contributor

wyozi commented Apr 19, 2020

I made an experimental branch: #18

Can you test it out to see if it works? You can just provide the table entity as the last parameter to Start3D2D

@Gmod18
Copy link
Author

Gmod18 commented Apr 19, 2020

imgui.Start3D2D(Pos + Ang:Up() * 37.6, Ang, 0.11, 10, 10, self) wont work i get errors but the normal code looks like this imgui.Start3D2D(Pos + Ang:Up() * 37.6, Ang, 0.11)

@Gmod18
Copy link
Author

Gmod18 commented Apr 19, 2020

also this is completly different but i keep getting this error

''[DarkRP] addons/fallout_chems/lua/entities/chem_workbench/imgui.lua:295: tried to end invalid render instance

  1. error - [C]:-1
  2. End3D2D - gamemodes/darkrp/gamemode/modules/workarounds/sh_workarounds.lua:164
    3. End3D2D - addons/fallout_chems/lua/entities/chem_workbench/imgui.lua:295
    4. unknown - addons/fallout_chems/lua/entities/chem_workbench/cl_init.lua:263
    ''

@Gmod18
Copy link
Author

Gmod18 commented Apr 19, 2020

nvm IT WORKS :) THANK YOU SO MUCH i can fix so many of my addons that look weird now

@Gmod18
Copy link
Author

Gmod18 commented Apr 19, 2020

this has helped me so much

@Gmod18
Copy link
Author

Gmod18 commented Apr 19, 2020

my only problem now is

[DarkRP] addons/fallout_chems/lua/entities/chem_workbench/imgui.lua:294: tried to end invalid render instance

  1. error - [C]:-1
  2. End3D2D - gamemodes/darkrp/gamemode/modules/workarounds/sh_workarounds.lua:164
    3. End3D2D - addons/fallout_chems/lua/entities/chem_workbench/imgui.lua:294
    4. unknown - addons/fallout_chems/lua/entities/chem_workbench/cl_init.lua:274

@wyozi
Copy link
Contributor

wyozi commented Apr 22, 2020

Are you using imgui.End3D2D correctly? It needs to be inside the if imgui.Start3D2D block

@Gmod18
Copy link
Author

Gmod18 commented Apr 22, 2020

it all works now thanks

@Gmod18 Gmod18 closed this as completed Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants