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

rendering menu #37

Open
cwloki opened this issue Apr 21, 2019 · 13 comments
Open

rendering menu #37

cwloki opened this issue Apr 21, 2019 · 13 comments
Labels
bug Something isn't working

Comments

@cwloki
Copy link

cwloki commented Apr 21, 2019

https://gyazo.com/198be1718da767d768b6760798a514a4

Im hooking on paint traverse as scene end isnt working, whenever i drag the menu it just resizes?

@cwloki cwloki added the bug Something isn't working label Apr 21, 2019
@cwloki
Copy link
Author

cwloki commented Apr 21, 2019

https://gyazo.com/a861b1ddd0af652e31bb911160e7492c
all my functions are setup fine
also im using csgo simple as a base

@danielkrupinski
Copy link
Contributor

Make sure your font is valid.

@cwloki
Copy link
Author

cwloki commented Apr 21, 2019

checked, works fine, even added a check for it in rendering the menu, im supposed to be rendering in painttraverse correct? nothing else will show

@cwloki
Copy link
Author

cwloki commented Apr 21, 2019

in scene end it just makes my whole screen black

@hvhbot
Copy link

hvhbot commented Apr 25, 2019

in scene end it just makes my whole screen black

Sceneend is supposed to render chams, hook menu in endscene or present or pt

@zxvnme
Copy link
Owner

zxvnme commented Apr 25, 2019

@Spoozyy What is the issue status after @Fedorito comment?

@patrykkolodziej
Copy link
Contributor

@Spoozyy If you still have issues check out my example implementation.
https://github.com/patrykkolodziej/zgui-example

@hvhbot
Copy link

hvhbot commented May 10, 2019

image
Help, my menu is just resizing (((

@patrykkolodziej
Copy link
Contributor

@hvhbot Check this issue #46

@thiccromo
Copy link

thiccromo commented May 11, 2019

So I am little new to csgo cheating and C++ in general. I am trying to replace this framework with my current one (imgui if you needed to know for troubleshooting purposes). I am also using surface(?) for my rendering and having issues with colors. ex. zgui::color cannot be converted to the color i am using.
example line of code:
void line(int x, int y, int x2, int y2, zgui::color c) noexcept { render::get().draw_line(x, y, x2, y2, c); }

Here I am getting "no suitable user-defined conversion"

For a second error, which I think has to do with the one above
image

Heres the code giving me the error:
void text(int x, int y, zgui::color color, unsigned long font, bool center, std::string text) noexcept { render::get().draw_text2(x, y, color, font, center, text); }
zgui::functions.draw_text = text;

Sorry if I am a little braindead, I tried my best to fix these on my own but ended up no where.

@zxvnme
Copy link
Owner

zxvnme commented May 11, 2019

@thiccromo Use
void line(int x, int y, int x2, int y2, zgui::color c) noexcept { render::get().draw_line(x, y, x2, y2, {c.r, c.g, c.b, c.a}); } instead of yours.

@thiccromo
Copy link

@thiccromo Use
void line(int x, int y, int x2, int y2, zgui::color c) noexcept { render::get().draw_line(x, y, x2, y2, {c.r, c.g, c.b, c.a}); } instead of yours.

Thank you for the help. Do you know any solutions for the second one?

@thiccromo
Copy link

thiccromo commented May 17, 2019

I am not sure if I'm making a bunch of mistakes or I am retard or not. But I am having trouble actually rendering some controls. I checked issue #46 just to find anything new, but that broke it even more.

void line(int x, int y, int x2, int y2, zgui::color c) noexcept { render::get().draw_line(x, y, x + x2, y + y2, {c.r, c.g, c.b, c.a} ); }
void rect(int x, int y, int x2, int y2, zgui::color c) noexcept { render::get().draw_rect(x, y, x + x2, y + y2, { c.r, c.g, c.b, c.a }); //render::get().draw_outline(x - 1, y - 1, x2 + 2, y2 + 2, (0, 0, 0, 255)); }
void filled_rect(int x, int y, int x2, int y2, zgui::color c) noexcept { render::get().draw_filled_rect(x, y, x + x2, y + y2, { c.r, c.g, c.b, c.a }); }

https://i.imgur.com/eN86Bz0.png

It doesn't seem to want to render anything but those first two controls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants