still taking code requests if you know how to get ahold of me
Re: just stopped in to say hi before crow bans me
Posted: Thu Feb 26, 2015 12:37 pm
by perrinoia
What do you know about gui?
Re: just stopped in to say hi before crow bans me
Posted: Thu Feb 26, 2015 12:39 pm
by bawb
That it is a pain in the fucking ass. And that you can edit them when you make a proper script to pair alongside of editgui(); but ive never tried it past coding huds and stuff
er guiedit(); ?? I don't remember.
Re: just stopped in to say hi before crow bans me
Posted: Thu Feb 26, 2015 1:05 pm
by perrinoia
I'm trying to replace the old 2d item huds with 3d items.
As you can see, I figured out how to add 3d rotating items to the playgui.
However, I don't know how to control them.
By default, when i open the K menu then click and drag on the screen, the item rotates in ways I don't need it to do...
I want the 3d shapes to move around the screen when I click and drag them, like any other hud element.
Currently, I have 4x 3d shapes in my playgui with fixed positions (I only know how to change by editing the cs file), but I can change which item it displays, and whether or not it is visible, via the console.
When I connect to a server for the first time, I want to be able to generate one 3d shape, one text hud, and one radio button for each item in the server's mod. The 3d shapes should be visible only when item count is greater than zero AND the corresponding radio button is ON, OR the k menu is visible. The text huds should be visible only when item count is greater than 1 OR the k menu is visible. The radio buttons should be visible only when the k menu is visible. All 3 elements should move together, when dragged and dropped. And all of these objects should be saved in a separate file for each server mod.
If you know how to any part of this, lemme know so I can start piecing this script together.
Re: just stopped in to say hi before crow bans me
Posted: Thu Feb 26, 2015 1:07 pm
by bawb
Whatever you posted didn't show up
feel free to email me any code or stuff you have and I can take a look/see what I can do. ryansvideoblog@gmail.com
Re: just stopped in to say hi before crow bans me
Posted: Thu Feb 26, 2015 4:05 pm
by Groove
dang bawbs still alive!
ay bawb you wouldn't happen to know a way to set the chat input popup width? seems to ignore settings in play.gui and always resets back to 370, only had luck changing it with a plugin
Re: just stopped in to say hi before crow bans me
Posted: Thu Feb 26, 2015 4:51 pm
by perrinoia
Isn't the width reset every time it receives a message? Perhaps you can attach to that event to prevent it from resetting.
Re: just stopped in to say hi before crow bans me
Posted: Thu Feb 26, 2015 6:30 pm
by Groove
if you set it in tree(); it seems to stick for your play session but then resets when u exit
i see a spot in the .exe where it resets it on create/destroy and i can patch that but there's gotta be an easier way
Re: just stopped in to say hi before crow bans me
Posted: Thu Feb 26, 2015 7:48 pm
by perrinoia
Can you write a script that replaces that function in the exe?
Re: just stopped in to say hi before crow bans me
Posted: Thu Feb 26, 2015 8:26 pm
by Groove
well thats what im thinking is, if the value can be set in tree(); and it works, it must be able to be set somehow by script